]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig-slighthint.patch
- subdir patch is outdated
[packages/fontconfig.git] / fontconfig-slighthint.patch
1 --- fontconfig/fontconfig/fontconfig.h.slighthint       Sun Aug 11 14:10:41 2002
2 +++ fontconfig/fontconfig/fontconfig.h  Mon Aug 12 16:23:51 2002
3 @@ -55,6 +55,7 @@
4  #define FC_FOUNDRY         "foundry"           /* String */
5  #define FC_ANTIALIAS       "antialias"         /* Bool (depends) */
6  #define FC_HINTING         "hinting"           /* Bool (true) */
7 +#define FC_HINT_STYLE      "hintstyle"         /* Int */
8  #define FC_VERTICAL_LAYOUT  "verticallayout"   /* Bool (false) */
9  #define FC_AUTOHINT        "autohint"          /* Bool (false) */
10  #define FC_GLOBAL_ADVANCE   "globaladvance"    /* Bool (true) */
11 @@ -102,6 +103,12 @@
12  #define FC_RGBA_VRGB       3
13  #define FC_RGBA_VBGR       4
14  
15 +/* hinting style */
16 +#define FC_HINT_NONE        0
17 +#define FC_HINT_SLIGHT      1
18 +#define FC_HINT_MEDIUM      2
19 +#define FC_HINT_FULL        3
20
21  typedef enum _FcType {
22      FcTypeVoid, 
23      FcTypeInteger, 
24 --- fontconfig/src/fcdefault.c.slighthint       Tue Jul  9 18:08:14 2002
25 +++ fontconfig/src/fcdefault.c  Mon Aug 12 16:22:01 2002
26 @@ -137,4 +137,9 @@
27                 FcPatternAddString (pattern, FC_LANG, (FcChar8 *) lang);
28         }
29      }
30 +
31 +    if (FcPatternGet (pattern, FC_HINT_STYLE, 0, &v) == FcResultNoMatch)
32 +    {
33 +       FcPatternAddInteger (pattern, FC_HINT_STYLE, FC_HINT_FULL);
34 +    }
35  }
36 --- fontconfig/src/fcname.c.orig        Wed Oct  2 09:11:30 2002
37 +++ fontconfig/src/fcname.c     Sun Dec  8 00:52:34 2002
38 @@ -40,6 +40,7 @@
39      { FC_FOUNDRY,      FcTypeString, },
40  /*    { FC_CORE,               FcTypeBool, }, */
41      { FC_ANTIALIAS,    FcTypeBool, },
42 +    { FC_HINT_STYLE,    FcTypeInteger, },
43      { FC_HINTING,      FcTypeBool, },
44      { FC_VERTICAL_LAYOUT,   FcTypeBool, },
45      { FC_AUTOHINT,     FcTypeBool, },
46 @@ -157,6 +158,12 @@
47      { (FcChar8 *) "vrgb",          "rgba",         FC_RGBA_VRGB },
48      { (FcChar8 *) "vbgr",          "rgba",         FC_RGBA_VBGR },
49      { (FcChar8 *) "none",          "rgba",         FC_RGBA_NONE },
50 +    
51 +    { (FcChar8 *) "hintnone",      "hintstyle",   FC_HINT_NONE },
52 +    { (FcChar8 *) "hintslight",    "hintstyle",   FC_HINT_SLIGHT },
53 +    { (FcChar8 *) "hintmedium",    "hintstyle",   FC_HINT_MEDIUM },
54 +    { (FcChar8 *) "hintfull",      "hintstyle",   FC_HINT_FULL },
55 +    
56  };
57  
58  #define NUM_FC_CONSTANTS   (sizeof _FcBaseConstants/sizeof _FcBaseConstants[0])
This page took 0.221154 seconds and 3 git commands to generate.