comparison src/font-mgr.h @ 4758:75975fd0b7fc

Implement more of the fontconfig API. Improve implementation, avoiding nonsyntactic macros and compiler warnings. Clean up some documentation. Guard against freeing NULL pointers returned from fonconfig.
author Stephen J. Turnbull <stephen@xemacs.org>
date Wed, 18 Nov 2009 22:44:28 +0900
parents a23ac8f90a49
children a6c778975d7d e0db3c197671
comparison
equal deleted inserted replaced
4757:a23ac8f90a49 4758:75975fd0b7fc
155 free (name); \ 155 free (name); \
156 } while (0) 156 } while (0)
157 157
158 /* print a progress message 158 /* print a progress message
159 LEVEL is the debug level (to compare to debug_xft) 159 LEVEL is the debug level (to compare to debug_xft)
160 FONT is the Xft font name in UTF-8 (the native encoding of Xft) 160 FONT is the Xft font name in Mule internal encoding (from an eistring).
161 LANG is the language being checked for support (must be ASCII). */ 161 LANG is the language being checked for support (must be ASCII). */
162 #define CHECKING_LANG(level,font,lang) \ 162 #define CHECKING_LANG(level,font,lang) \
163 do { \ 163 do { \
164 DECLARE_EISTRING (eistrcl_name); \ 164 DEBUG_XFT2 (level, "checking if %s handles %s\n", font, lang); \
165 eicpy_ext(eistrcl_name, font, Qfc_font_name_encoding); \
166 DEBUG_XFT2 (level, "checking if %s handles %s\n", \
167 eidata(eistrcl_name), lang); \
168 } while (0) 165 } while (0)
169 166
170 #else /* USE_XFT */ 167 #else /* USE_XFT */
171 168
172 #endif /* USE_XFT */ 169 #endif /* USE_XFT */