[WIN32SS][FONT] Improve Precision Penalty (#1006)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Fri, 2 Nov 2018 20:37:05 +0000 (05:37 +0900)
committerGitHub <noreply@github.com>
Fri, 2 Nov 2018 20:37:05 +0000 (05:37 +0900)
win32ss/gdi/ntgdi/freetype.c

index f1dee70..6e06763 100644 (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)))