2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
+ * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
+
* xdisp.c (display_mode_element): Cancel the previous change.
(decode_mode_spec): Likewise.
(handle_auto_composed_prop): Don't make composition if it->string
pattern = FcNameParse (SDATA (XCDR (val)));
if (pattern)
{
+ if (INTEGERP (AREF (spec, FONT_SIZE_INDEX)))
+ {
+ FcValue value;
+
+ value.type = FcTypeDouble;
+ value.u.d = XINT (AREF (spec, FONT_SIZE_INDEX));
+ FcPatternAdd (pattern, FC_PIXEL_SIZE, value, FcFalse);
+ }
if (FcConfigSubstitute (NULL, pattern, FcMatchPattern) == FcTrue)
{
FcDefaultSubstitute (pattern);