changeset 90714:698001835583

(xftfont_open): Call FcConfigSubstitute.
author Kenichi Handa <handa@m17n.org>
date Wed, 06 Dec 2006 11:54:55 +0000
parents 291f9de409b0
children 98bcefc39f53
files src/xftfont.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xftfont.c	Tue Dec 05 05:15:08 2006 +0000
+++ b/src/xftfont.c	Wed Dec 06 11:54:55 2006 +0000
@@ -240,6 +240,10 @@
   FcPatternAddString (pat, FC_FILE, file);
   FcPatternAddDouble (pat, FC_PIXEL_SIZE, pixel_size);
   /*FcPatternAddBool (pat, FC_ANTIALIAS, FcTrue);*/
+  val = AREF (entity, FONT_FAMILY_INDEX);
+  if (! NILP (val))
+    FcPatternAddString (pat, FC_FAMILY, (FcChar8 *) SDATA (SYMBOL_NAME (val)));
+  FcConfigSubstitute (NULL, pat, FcMatchPattern);
 
   BLOCK_INPUT;
   XftDefaultSubstitute (display, FRAME_X_SCREEN_NUMBER (f), pat);