(xftfont_open): Handle QCembolden only when FC_EMBOLDEN is defined.

This commit is contained in:
Kenichi Handa 2008-06-21 11:15:04 +00:00
parent c60f3aa442
commit 808dd567ef
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-06-21 Kenichi Handa <handa@m17n.org>
* xftfont.c (xftfont_open): Handle QCembolden only when
FC_EMBOLDEN is defined.
2008-06-21 Andreas Schwab <schwab@suse.de>
* Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).

View file

@ -257,8 +257,10 @@ xftfont_open (f, entity, pixel_size)
if (INTEGERP (val))
FcPatternAddInteger (pat, FC_RGBA, XINT (val));
}
#ifdef FC_EMBOLDEN
else if (EQ (key, QCembolden))
FcPatternAddBool (pat, FC_EMBOLDEN, NILP (val) ? FcFalse : FcTrue);
#endif
}
FcConfigSubstitute (NULL, pat, FcMatchPattern);