https://git.reactos.org/?p=reactos.git;a=commitdiff;h=023794c7c18e66cee8ebd2daf0dee3d213a66c10

commit 023794c7c18e66cee8ebd2daf0dee3d213a66c10
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Sun Jul 21 12:59:06 2019 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Sun Jul 21 12:59:06 2019 +0900

    [FONTS][NTGDI] Change Marlett.ttf charset and delete charset hacks
---
 media/fonts/Marlett.ttf      | Bin 3572 -> 4716 bytes
 win32ss/gdi/ntgdi/freetype.c |  27 ---------------------------
 2 files changed, 27 deletions(-)

diff --git a/media/fonts/Marlett.ttf b/media/fonts/Marlett.ttf
index d246ccfc42c..ea6fdac4038 100644
Binary files a/media/fonts/Marlett.ttf and b/media/fonts/Marlett.ttf differ
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 5d14f4ca799..4e4d4f6f8fd 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -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)

Reply via email to