Magellan Linux

Annotation of /trunk/xorg-old/patches-6.8.2-r10/1010_all_fontconfig-2.1-slighthint.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 167 - (hide annotations) (download)
Tue May 8 20:58:51 2007 UTC (17 years ago) by niro
File size: 2230 byte(s)
-import

1 niro 167 --- xc/extras/fontconfig/fontconfig/fontconfig.h.slighthint Sun Aug 11 14:10:41 2002
2     +++ xc/extras/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     --- xc/extras/fontconfig/src/fcdefault.c.slighthint Tue Jul 9 18:08:14 2002
25     +++ xc/extras/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     --- xc/extras/fontconfig/src/fcname.c.slighthint Sun Aug 11 14:10:42 2002
37     +++ xc/extras/fontconfig/src/fcname.c Mon Aug 12 16:24:28 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     @@ -153,6 +154,11 @@
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     #define NUM_FC_CONSTANTS (sizeof _FcBaseConstants/sizeof _FcBaseConstants[0])