diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-11 21:13:34 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-11 21:13:34 -0800 |
commit | af59aa6e3c661fcd547df8bc4175750f9edb20ec (patch) | |
tree | 6599c3ee9a310850bb8134e1c1d5a24958648b12 /src/xftfont.c | |
parent | e87977013bd12fb0011936e9643d5b69f5452cd2 (diff) | |
download | emacs-af59aa6e3c661fcd547df8bc4175750f9edb20ec.tar.gz |
Port to Solaris 10, which doesn't support FC_HINT_STYLE.
Diffstat (limited to 'src/xftfont.c')
-rw-r--r-- | src/xftfont.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xftfont.c b/src/xftfont.c index 084ca735171..695527c4236 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -187,17 +187,20 @@ xftfont_fix_match (FcPattern *pat, FcPattern *match) double dpi; FcPatternGetBool (pat, FC_ANTIALIAS, 0, &b); - if (! b) + if (! b) { FcPatternDel (match, FC_ANTIALIAS); FcPatternAddBool (match, FC_ANTIALIAS, FcFalse); } FcPatternGetBool (pat, FC_HINTING, 0, &b); - if (! b) + if (! b) { FcPatternDel (match, FC_HINTING); FcPatternAddBool (match, FC_HINTING, FcFalse); } +#ifndef FC_HINT_STYLE +# define FC_HINT_STYLE "hintstyle" +#endif if (FcResultMatch == FcPatternGetInteger (pat, FC_HINT_STYLE, 0, &i)) { FcPatternDel (match, FC_HINT_STYLE); @@ -781,4 +784,3 @@ syms_of_xftfont (void) register_font_driver (&xftfont_driver, NULL); } - |