OSDN Git Service

Merge.cpp: Use Meiryo UI font instead of Meiryo font
authorsdottaka <sdottaka@users.sourceforge.net>
Sun, 14 Jun 2015 13:10:47 +0000 (22:10 +0900)
committersdottaka <sdottaka@users.sourceforge.net>
Sun, 14 Jun 2015 13:10:47 +0000 (22:10 +0900)
--HG--
branch : stable

Src/Merge.cpp

index ddc660b..54b4c6e 100644 (file)
@@ -370,6 +370,8 @@ BOOL CMergeApp::InitInstance()
                ::ReleaseDC(NULL, hdc);
                if (abs(ncm.lfMenuFont.lfHeight) > abs(lfHeight))
                        ncm.lfMenuFont.lfHeight = lfHeight;
+               if (wcscmp(ncm.lfMenuFont.lfFaceName, L"Meiryo") == 0 || wcscmp(ncm.lfMenuFont.lfFaceName, L"\U000030e1\U000030a4\U000030ea\U000030aa"/* "Meiryo" in Japanese */) == 0)
+                       wcscpy_s(ncm.lfMenuFont.lfFaceName, L"Meiryo UI");
                m_fontGUI.CreateFontIndirect(&ncm.lfMenuFont);
        }