[FONTS][NTGDI] Change Marlett.ttf charset and delete charset hacks
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 21 Jul 2019 03:59:06 +0000 (12:59 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 21 Jul 2019 03:59:06 +0000 (12:59 +0900)
media/fonts/Marlett.ttf
win32ss/gdi/ntgdi/freetype.c

index d246ccf..ea6fdac 100644 (file)
Binary files a/media/fonts/Marlett.ttf and b/media/fonts/Marlett.ttf differ
index 5d14f4c..4e4d4f6 100644 (file)
@@ -50,10 +50,6 @@ static const FT_Matrix identityMat = {(1 << 16), 0, 0, (1 << 16)};
 
 FT_Library  g_FreeTypeLibrary;
 
-/* special font names */
-static const UNICODE_STRING g_MarlettW = RTL_CONSTANT_STRING(L"Marlett");
-#define MARLETT_HACK_CHARSET
-
 /* registry */
 static UNICODE_STRING g_FontRegPath =
     RTL_CONSTANT_STRING(L"\\REGISTRY\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts");
@@ -1307,14 +1303,6 @@ IntGdiLoadFontsFromMemory(PGDI_LOAD_FONT pLoadFont)
             if (FT_IS_SFNT(Face))
             {
                 FontGDI->CharSet = IntGetCharSet(iCharSet, os2_ulCodePageRange1);
-
-#ifdef MARLETT_HACK_CHARSET
-                /* FIXME: CharSet is invalid on our Marlett */
-                if (RtlEqualUnicodeString(&Entry->FaceName, &g_MarlettW, TRUE))
-                {
-                    FontGDI->CharSet = SYMBOL_CHARSET;
-                }
-#endif
             }
             else
             {
@@ -4549,21 +4537,6 @@ GetFontPenalty(const LOGFONTW *               LogFont,
 
     Byte = LogFont->lfCharSet;
 
-#ifdef MARLETT_HACK_CHARSET
-    if (Byte == DEFAULT_CHARSET)
-    {
-        if (_wcsicmp(LogFont->lfFaceName, L"Marlett") == 0)
-        {
-            if (Byte == ANSI_CHARSET)
-            {
-                DPRINT("Warning: FIXME: It's Marlett but ANSI_CHARSET.\n");
-            }
-            /* We assume SYMBOL_CHARSET for "Marlett" font */
-            Byte = SYMBOL_CHARSET;
-        }
-    }
-#endif
-
     if (Byte != TM->tmCharSet)
     {
         if (Byte != DEFAULT_CHARSET && Byte != ANSI_CHARSET)