]> git.wh0rd.org Git - fontconfig.git/commitdiff
Add a global binding for the 'render' pattern element used by Xft; the lack
authorPatrick Lam <plam@MIT.EDU>
Sun, 11 Sep 2005 05:17:28 +0000 (05:17 +0000)
committerPatrick Lam <plam@MIT.EDU>
Sun, 11 Sep 2005 05:17:28 +0000 (05:17 +0000)
    of said binding prevented programs from using FcPatterns through Xft.

fontconfig/fontconfig.h
src/fcname.c

index 312256f879e3321faae2c137f188bc6f4895a9f9..b967580b6e9c4563ed914d7798c77ce51f12e74d 100644 (file)
@@ -96,6 +96,7 @@ typedef int           FcBool;
 #define FC_CAPABILITY       "capability"       /* String */
 #define FC_FONTFORMAT      "fontformat"        /* String */
 #define FC_EMBOLDEN        "embolden"          /* Bool - true if emboldening needed*/
+#define FC_RENDER          "render"            /* Bool */
 
 #define FC_DIR_CACHE_FILE          "fonts.cache-"FC_CACHE_VERSION
 #define FC_USER_CACHE_FILE         ".fonts.cache-"FC_CACHE_VERSION
index e50f75fa7d19e66d42c7677b44f269717d23c28c..500403247d53f735a02a1d8bc7db1dfbf5210eb6 100644 (file)
@@ -60,7 +60,6 @@ static const FcObjectType _FcBaseObjectTypes[] = {
     { FC_DPI,          FcTypeDouble },
     { FC_RGBA,         FcTypeInteger, },
     { FC_SCALE,                FcTypeDouble, },
-/*    { FC_RENDER,     FcTypeBool, },*/
     { FC_MINSPACE,     FcTypeBool, },
     { FC_CHAR_WIDTH,   FcTypeInteger },
     { FC_CHAR_HEIGHT,  FcTypeInteger },
@@ -71,6 +70,7 @@ static const FcObjectType _FcBaseObjectTypes[] = {
     { FC_CAPABILITY,   FcTypeString },
     { FC_FONTFORMAT,   FcTypeString },
     { FC_EMBOLDEN,     FcTypeBool },
+    { FC_RENDER,       FcTypeBool, },
 };
 
 #define NUM_OBJECT_TYPES    (sizeof _FcBaseObjectTypes / sizeof _FcBaseObjectTypes[0])