From: handa Date: Mon, 2 Aug 2004 02:37:44 +0000 (+0000) Subject: (mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY, X-Git-Tag: REL-1-1-0~45 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=4f380c02d15a2772598cdeec3f10846c29ed310e;p=m17n%2Fm17n-lib.git (mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY, set val to 1 even if it is greater than 1. --- diff --git a/src/font.c b/src/font.c index 90e9db6..6d42b47 100644 --- a/src/font.c +++ b/src/font.c @@ -958,6 +958,8 @@ mfont__score (MFont *font, MFont *spec, MFont *request, int limited_size) return -1; if (font->property[prop]) val = abs (font->property[prop] - request->property[prop]); + if (val && prop <= MFONT_FAMILY) + val = 1; if (prop == MFONT_SIZE) { if (font->property[MFONT_RESY] == 0)