[WIN32SS][FONT] Improve FamilyUnknown Penalty (#1097)

CORE-15419
This commit is contained in:
Katayama Hirofumi MZ 2018-12-06 09:32:02 +09:00 committed by GitHub
parent 9eb82c499f
commit 93757884c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4581,12 +4581,13 @@ GetFontPenalty(const LOGFONTW * LogFont,
/* Requested a family, but the candidate's family is different. */ /* Requested a family, but the candidate's family is different. */
GOT_PENALTY("Family", 9000); GOT_PENALTY("Family", 9000);
} }
if ((TM->tmPitchAndFamily & 0xF0) == FF_DONTCARE) }
{
/* FamilyUnknown Penalty 8000 */ if ((TM->tmPitchAndFamily & 0xF0) == FF_DONTCARE)
/* Requested a family, but the candidate has no family. */ {
GOT_PENALTY("FamilyUnknown", 8000); /* FamilyUnknown Penalty 8000 */
} /* Requested a family, but the candidate has no family. */
GOT_PENALTY("FamilyUnknown", 8000);
} }
/* Is the candidate a non-vector font? */ /* Is the candidate a non-vector font? */