# HG changeset patch # User Kenichi Handa # Date 1154400050 0 # Node ID 3762a2cc74def8eb38a257b5b6ffb420456e453d # Parent 009accc57d73a05e355eb6359d0116ecd7e35b77 (ftfont_pattern_entity): If the pattern doesn't contain FC_SPACING, don't assuce FC_MONO. diff -r 009accc57d73 -r 3762a2cc74de src/ftfont.c --- a/src/ftfont.c Tue Aug 01 01:52:01 2006 +0000 +++ b/src/ftfont.c Tue Aug 01 02:40:50 2006 +0000 @@ -140,7 +140,7 @@ ASET (entity, FONT_SIZE_INDEX, make_number (0)); if (FcPatternGetInteger (p, FC_SPACING, 0, &numeric) != FcResultMatch) - numeric = FC_MONO; + numeric = -1; file = FcStrCopy (file); if (! file) return Qnil; @@ -151,7 +151,8 @@ if (FcPatternAddString (p, FC_FILE, file) == FcFalse || (charset && FcPatternAddCharSet (p, FC_CHARSET, charset) == FcFalse) - || FcPatternAddInteger (p, FC_SPACING, numeric) == FcFalse) + || (numeric >= 0 + && FcPatternAddInteger (p, FC_SPACING, numeric) == FcFalse)) { FcPatternDestroy (p); return Qnil;