diff -ru fontconfig-2.5.0/fontconfig/fontconfig.h fontconfig-2.5.0-new/fontconfig/fontconfig.h --- fontconfig-2.5.0/fontconfig/fontconfig.h 2007-11-13 20:55:06.000000000 -0600 +++ fontconfig-2.5.0-new/fontconfig/fontconfig.h 2007-12-06 13:15:16.000000000 -0600 @@ -111,6 +111,7 @@ #define FC_EMBOLDEN "embolden" /* Bool - true if emboldening needed*/ #define FC_EMBEDDED_BITMAP "embeddedbitmap" /* Bool - true to enable embedded bitmaps */ #define FC_DECORATIVE "decorative" /* Bool - true if style is a decorative variant */ +#define FC_LCD_FILTER "lcdfilter" /* Int */ #define FC_CACHE_SUFFIX ".cache-"FC_CACHE_VERSION #define FC_DIR_CACHE_FILE "fonts.cache-"FC_CACHE_VERSION @@ -166,6 +167,11 @@ #define FC_RGBA_VBGR 4 #define FC_RGBA_NONE 5 +#define FC_LCD_FILTER_NONE 0 +#define FC_LCD_FILTER_DEFAULT 1 +#define FC_LCD_FILTER_LIGHT 2 +#define FC_LCD_FILTER_LEGACY 3 + /* hinting style */ #define FC_HINT_NONE 0 #define FC_HINT_SLIGHT 1 diff -ru fontconfig-2.5.0/src/fcint.h fontconfig-2.5.0-new/src/fcint.h --- fontconfig-2.5.0/src/fcint.h 2007-11-13 17:23:39.000000000 -0600 +++ fontconfig-2.5.0-new/src/fcint.h 2007-12-06 13:16:22.000000000 -0600 @@ -864,7 +864,8 @@ #define FC_EMBOLDEN_OBJECT 38 #define FC_EMBEDDED_BITMAP_OBJECT 39 #define FC_DECORATIVE_OBJECT 40 -#define FC_MAX_BASE_OBJECT FC_DECORATIVE_OBJECT +#define FC_LCD_FILTER_OBJECT 41 +#define FC_MAX_BASE_OBJECT FC_LCD_FILTER_OBJECT FcPrivate FcBool FcNameBool (const FcChar8 *v, FcBool *result); diff -ru fontconfig-2.5.0/src/fcname.c fontconfig-2.5.0-new/src/fcname.c --- fontconfig-2.5.0/src/fcname.c 2006-09-05 03:56:47.000000000 -0500 +++ fontconfig-2.5.0-new/src/fcname.c 2007-12-06 13:17:56.000000000 -0600 @@ -74,7 +74,8 @@ { FC_FONTFORMAT, FcTypeString }, { FC_EMBOLDEN, FcTypeBool }, { FC_EMBEDDED_BITMAP, FcTypeBool }, - { FC_DECORATIVE, FcTypeBool }, /* 40 */ + { FC_DECORATIVE, FcTypeBool }, + { FC_LCD_FILTER, FcTypeInteger, }, /* 41 */ }; #define NUM_OBJECT_TYPES (sizeof _FcBaseObjectTypes / sizeof _FcBaseObjectTypes[0]) @@ -435,6 +436,11 @@ { (FcChar8 *) "embolden", "embolden", FcTrue }, { (FcChar8 *) "embeddedbitmap", "embeddedbitmap", FcTrue }, { (FcChar8 *) "decorative", "decorative", FcTrue }, + { (FcChar8 *) "lcdfilternone", "lcdfilter", FC_LCD_FILTER_NONE }, + { (FcChar8 *) "lcdfilterdefault", "lcdfilter", FC_LCD_FILTER_DEFAULT, }, + { (FcChar8 *) "lcdfilterlight", "lcdfilter", FC_LCD_FILTER_LIGHT, }, + { (FcChar8 *) "lcdfilterlegacy", "lcdfilter", FC_LCD_FILTER_LEGACY }, + }; #define NUM_FC_CONSTANTS (sizeof _FcBaseConstants/sizeof _FcBaseConstants[0])