From 808dd567ef8b88cddf8b2b4eb6f8c3f9c5a3a262 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sat, 21 Jun 2008 11:15:04 +0000 Subject: [PATCH] (xftfont_open): Handle QCembolden only when FC_EMBOLDEN is defined. --- src/ChangeLog | 5 +++++ src/xftfont.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index fb583123321..7ee88c21cfc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-06-21 Kenichi Handa + + * xftfont.c (xftfont_open): Handle QCembolden only when + FC_EMBOLDEN is defined. + 2008-06-21 Andreas Schwab * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource). diff --git a/src/xftfont.c b/src/xftfont.c index aa6c270e647..c6aab049b4c 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -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); -- 2.39.2