Mercurial > hg > xemacs-beta
comparison src/font-mgr.h @ 4757:a23ac8f90a49
Improve warning and error messages from Xft.
Default debug-level messages off.
Cast away Xft warnings from C compiler.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Wed, 18 Nov 2009 15:25:00 +0900 |
parents | dfd878799ef0 |
children | 75975fd0b7fc |
comparison
equal
deleted
inserted
replaced
4756:5d67242595a8 | 4757:a23ac8f90a49 |
---|---|
144 and must be internal format (eg, pure ASCII) | 144 and must be internal format (eg, pure ASCII) |
145 PATTERN is an FcPattern *. */ | 145 PATTERN is an FcPattern *. */ |
146 #define PRINT_XFT_PATTERN(level,format,pattern) \ | 146 #define PRINT_XFT_PATTERN(level,format,pattern) \ |
147 do { \ | 147 do { \ |
148 DECLARE_EISTRING (eistrpxft_name); \ | 148 DECLARE_EISTRING (eistrpxft_name); \ |
149 FcChar8 *name = FcNameUnparse (pattern); \ | 149 Extbyte *name = (Extbyte *) FcNameUnparse (pattern); \ |
150 \ | 150 \ |
151 eicpy_ext(eistrpxft_name, name, Qfc_font_name_encoding); \ | 151 eicpy_ext(eistrpxft_name, \ |
152 name ? name : "FONT WITH NULL NAME", \ | |
153 Qfc_font_name_encoding); \ | |
152 DEBUG_XFT1 (level, format, eidata(eistrpxft_name)); \ | 154 DEBUG_XFT1 (level, format, eidata(eistrpxft_name)); \ |
153 free (name); \ | 155 free (name); \ |
154 } while (0) | 156 } while (0) |
155 | 157 |
156 /* print a progress message | 158 /* print a progress message |