[WIN32SS][FONT] Improve Precision Penalty (#1006)

This commit is contained in:
Katayama Hirofumi MZ 2018-11-03 05:37:05 +09:00 committed by GitHub
parent 8bb1b39f66
commit 4abba2b7ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4456,10 +4456,11 @@ GetFontPenalty(const LOGFONTW * LogFont,
}
Byte = LogFont->lfOutPrecision;
if (Byte == OUT_DEFAULT_PRECIS)
Byte = OUT_OUTLINE_PRECIS; /* Is it OK? */
switch (Byte)
{
case OUT_DEFAULT_PRECIS:
/* nothing to do */
break;
case OUT_DEVICE_PRECIS:
if (!(TM->tmPitchAndFamily & TMPF_DEVICE) ||
!(TM->tmPitchAndFamily & (TMPF_VECTOR | TMPF_TRUETYPE)))