(mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY,
authorhanda <handa>
Mon, 2 Aug 2004 02:37:44 +0000 (02:37 +0000)
committerhanda <handa>
Mon, 2 Aug 2004 02:37:44 +0000 (02:37 +0000)
set val to 1 even if it is greater than 1.

src/font.c

index 90e9db6..6d42b47 100644 (file)
@@ -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)