From 0fa237d1e010a1ab9b8fb09079fbb364958d8cc7 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Sun, 11 Sep 2005 05:17:28 +0000 Subject: [PATCH] Add a global binding for the 'render' pattern element used by Xft; the lack of said binding prevented programs from using FcPatterns through Xft. --- fontconfig/fontconfig.h | 1 + src/fcname.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h index 312256f..b967580 100644 --- a/fontconfig/fontconfig.h +++ b/fontconfig/fontconfig.h @@ -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 diff --git a/src/fcname.c b/src/fcname.c index e50f75f..5004032 100644 --- a/src/fcname.c +++ b/src/fcname.c @@ -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]) -- 2.39.5