diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-10-27 16:15:20 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-10-27 16:15:20 +0000 |
commit | 2ec5218b7a5ceca34ed376c825b1694a4ae52d21 (patch) | |
tree | 5d87c1868a0a45acd40ba32266e6a75c7d82d8a1 /media-libs/fontconfig/files/patch/fontconfig-0.0.1.020811.1151-slighthint.patch | |
parent | added virtual/xft (diff) | |
download | historical-2ec5218b7a5ceca34ed376c825b1694a4ae52d21.tar.gz historical-2ec5218b7a5ceca34ed376c825b1694a4ae52d21.tar.bz2 historical-2ec5218b7a5ceca34ed376c825b1694a4ae52d21.zip |
some patches added
Diffstat (limited to 'media-libs/fontconfig/files/patch/fontconfig-0.0.1.020811.1151-slighthint.patch')
-rw-r--r-- | media-libs/fontconfig/files/patch/fontconfig-0.0.1.020811.1151-slighthint.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/media-libs/fontconfig/files/patch/fontconfig-0.0.1.020811.1151-slighthint.patch b/media-libs/fontconfig/files/patch/fontconfig-0.0.1.020811.1151-slighthint.patch new file mode 100644 index 000000000000..fb2527a3f151 --- /dev/null +++ b/media-libs/fontconfig/files/patch/fontconfig-0.0.1.020811.1151-slighthint.patch @@ -0,0 +1,57 @@ +--- fontconfig/fontconfig/fontconfig.h.slighthint Sun Aug 11 14:10:41 2002 ++++ fontconfig/fontconfig/fontconfig.h Mon Aug 12 16:23:51 2002 +@@ -55,6 +55,7 @@ + #define FC_FOUNDRY "foundry" /* String */ + #define FC_ANTIALIAS "antialias" /* Bool (depends) */ + #define FC_HINTING "hinting" /* Bool (true) */ ++#define FC_HINT_STYLE "hintstyle" /* Int */ + #define FC_VERTICAL_LAYOUT "verticallayout" /* Bool (false) */ + #define FC_AUTOHINT "autohint" /* Bool (false) */ + #define FC_GLOBAL_ADVANCE "globaladvance" /* Bool (true) */ +@@ -102,6 +103,12 @@ + #define FC_RGBA_VRGB 3 + #define FC_RGBA_VBGR 4 + ++/* hinting style */ ++#define FC_HINT_NONE 0 ++#define FC_HINT_SLIGHT 1 ++#define FC_HINT_MEDIUM 2 ++#define FC_HINT_FULL 3 ++ + typedef enum _FcType { + FcTypeVoid, + FcTypeInteger, +--- fontconfig/src/fcdefault.c.slighthint Tue Jul 9 18:08:14 2002 ++++ fontconfig/src/fcdefault.c Mon Aug 12 16:22:01 2002 +@@ -137,4 +137,9 @@ + FcPatternAddString (pattern, FC_LANG, (FcChar8 *) lang); + } + } ++ ++ if (FcPatternGet (pattern, FC_HINT_STYLE, 0, &v) == FcResultNoMatch) ++ { ++ FcPatternAddInteger (pattern, FC_HINT_STYLE, FC_HINT_FULL); ++ } + } +--- fontconfig/src/fcname.c.slighthint Sun Aug 11 14:10:42 2002 ++++ fontconfig/src/fcname.c Mon Aug 12 16:24:28 2002 +@@ -40,6 +40,7 @@ + { FC_FOUNDRY, FcTypeString, }, + /* { FC_CORE, FcTypeBool, }, */ + { FC_ANTIALIAS, FcTypeBool, }, ++ { FC_HINT_STYLE, FcTypeInteger, }, + { FC_HINTING, FcTypeBool, }, + { FC_VERTICAL_LAYOUT, FcTypeBool, }, + { FC_AUTOHINT, FcTypeBool, }, +@@ -153,6 +154,11 @@ + { (FcChar8 *) "bgr", "rgba", FC_RGBA_BGR, }, + { (FcChar8 *) "vrgb", "rgba", FC_RGBA_VRGB }, + { (FcChar8 *) "vbgr", "rgba", FC_RGBA_VBGR }, ++ ++ { (FcChar8 *) "hintnone", "hintstyle", FC_HINT_NONE }, ++ { (FcChar8 *) "hintslight", "hintstyle", FC_HINT_SLIGHT }, ++ { (FcChar8 *) "hintmedium", "hintstyle", FC_HINT_MEDIUM }, ++ { (FcChar8 *) "hintfull", "hintstyle", FC_HINT_FULL }, + }; + + #define NUM_FC_CONSTANTS (sizeof _FcBaseConstants/sizeof _FcBaseConstants[0]) |