From: handa Date: Wed, 12 May 2004 01:23:03 +0000 (+0000) Subject: (mwin__xft_open): Fix previous change. X-Git-Tag: withdl~217 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=46b14593e8bd0670f7fb1ad2a5630df86b74d800;p=m17n%2Fm17n-lib.git (mwin__xft_open): Fix previous change. --- diff --git a/src/m17n-X.c b/src/m17n-X.c index 6c2d817..ca2580c 100644 --- a/src/m17n-X.c +++ b/src/m17n-X.c @@ -2184,6 +2184,7 @@ mwin__xft_open (MFrame *frame, char *fontname, int size) font_info->frame = frame; pattern = XftNameParse (fontname); + XftPatternAddDouble (pattern, XFT_PIXEL_SIZE, (double) size); XftPatternAddBool (pattern, XFT_ANTIALIAS, 1); pattern = XftFontMatch (FRAME_DISPLAY (frame), FRAME_SCREEN (frame), pattern, &result); @@ -2191,6 +2192,7 @@ mwin__xft_open (MFrame *frame, char *fontname, int size) if (! font_info->font_aa) goto err; pattern = XftNameParse (fontname); + XftPatternAddDouble (pattern, XFT_PIXEL_SIZE, (double) size); XftPatternAddBool (pattern, XFT_ANTIALIAS, 0); pattern = XftFontMatch (FRAME_DISPLAY (frame), FRAME_SCREEN (frame), pattern, &result);