Mercurial > emacs
comparison src/xftfont.c @ 106092:6804c4648fee
* xftfont.c (xftfont_fix_match): Older versions of fontconfig does
not have FC_LCD_*. #define them if not there.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Tue, 17 Nov 2009 13:47:29 +0000 |
parents | b40edfe3e412 |
children | 8671036bedc4 |
comparison
equal
deleted
inserted
replaced
106091:0e0a17aff6ec | 106092:6804c4648fee |
---|---|
212 if (FcResultMatch == FcPatternGetInteger (pat, FC_HINT_STYLE, 0, &i)) | 212 if (FcResultMatch == FcPatternGetInteger (pat, FC_HINT_STYLE, 0, &i)) |
213 { | 213 { |
214 FcPatternDel (match, FC_HINT_STYLE); | 214 FcPatternDel (match, FC_HINT_STYLE); |
215 FcPatternAddInteger (match, FC_HINT_STYLE, i); | 215 FcPatternAddInteger (match, FC_HINT_STYLE, i); |
216 } | 216 } |
217 #ifdef FC_LCD_FILTER | 217 #ifndef FC_LCD_FILTER |
218 /* Older fontconfig versions don't have FC_LCD_FILTER. */ | 218 /* Older fontconfig versions don't have FC_LCD_FILTER. */ |
219 #define FC_LCD_FILTER "lcdfilter" | |
220 #endif | |
219 if (FcResultMatch == FcPatternGetInteger (pat, FC_LCD_FILTER, 0, &i)) | 221 if (FcResultMatch == FcPatternGetInteger (pat, FC_LCD_FILTER, 0, &i)) |
220 { | 222 { |
221 FcPatternDel (match, FC_LCD_FILTER); | 223 FcPatternDel (match, FC_LCD_FILTER); |
222 FcPatternAddInteger (match, FC_LCD_FILTER, i); | 224 FcPatternAddInteger (match, FC_LCD_FILTER, i); |
223 } | 225 } |
224 #endif | |
225 if (FcResultMatch == FcPatternGetInteger (pat, FC_RGBA, 0, &i)) | 226 if (FcResultMatch == FcPatternGetInteger (pat, FC_RGBA, 0, &i)) |
226 { | 227 { |
227 FcPatternDel (match, FC_RGBA); | 228 FcPatternDel (match, FC_RGBA); |
228 FcPatternAddInteger (match, FC_RGBA, i); | 229 FcPatternAddInteger (match, FC_RGBA, i); |
229 } | 230 } |