comparison src/font-mgr.h @ 3931:fd1f0c73d4df

[xemacs-hg @ 2007-04-30 16:46:29 by stephent] First draft of fc-config implementation. <87r6q1hkgo.fsf@uwakimon.sk.tsukuba.ac.jp>
author stephent
date Mon, 30 Apr 2007 16:46:36 +0000
parents 3214dca89755
children dfd878799ef0
comparison
equal deleted inserted replaced
3930:1dac67fc67ae 3931:fd1f0c73d4df
65 #define wrap_fcpattern(p) wrap_record (p, fc_pattern) 65 #define wrap_fcpattern(p) wrap_record (p, fc_pattern)
66 #define FCPATTERNP(x) RECORDP (x, fc_pattern) 66 #define FCPATTERNP(x) RECORDP (x, fc_pattern)
67 #define CHECK_FCPATTERN(x) CHECK_RECORD (x, fc_pattern) 67 #define CHECK_FCPATTERN(x) CHECK_RECORD (x, fc_pattern)
68 #define CONCHECK_FCPATTERN(x) CONCHECK_RECORD (x, fc_pattern) 68 #define CONCHECK_FCPATTERN(x) CONCHECK_RECORD (x, fc_pattern)
69 #define XFCPATTERN_PTR(x) (XFCPATTERN(x)->fcpatPtr) 69 #define XFCPATTERN_PTR(x) (XFCPATTERN(x)->fcpatPtr)
70
71 #define FONTCONFIG_EXPOSE_CONFIG
72 #ifdef FONTCONFIG_EXPOSE_CONFIG
73
74 struct fc_config
75 {
76 struct LCRECORD_HEADER header;
77 FcConfig *fccfgPtr;
78 };
79
80 typedef struct fc_config fc_config;
81
82 DECLARE_LRECORD(fc_config, struct fc_config);
83 #define XFCCONFIG(x) XRECORD (x, fc_config, struct fc_config)
84 #define wrap_fcconfig(p) wrap_record (p, fc_config)
85 #define FCCONFIGP(x) RECORDP (x, fc_config)
86 #define CHECK_FCCONFIG(x) CHECK_RECORD (x, fc_config)
87 #define CONCHECK_FCCONFIG(x) CONCHECK_RECORD (x, fc_config)
88 #define XFCCONFIG_PTR(x) (XFCCONFIG(x)->fccfgPtr)
89
90 #endif /* FONTCONFIG_EXPOSE_CONFIG */
70 91
71 #ifdef USE_XFT 92 #ifdef USE_XFT
72 /* 93 /*
73 The format of a fontname (as returned by fontconfig) is not well-documented, 94 The format of a fontname (as returned by fontconfig) is not well-documented,
74 But the character repertoire is represented in an ASCII-compatible way. See 95 But the character repertoire is represented in an ASCII-compatible way. See