From 4f380c02d15a2772598cdeec3f10846c29ed310e Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 2 Aug 2004 02:37:44 +0000 Subject: [PATCH] (mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY, set val to 1 even if it is greater than 1. --- src/font.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 1.7.10.4