X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b0b5ba76e7311091f473e5591cb74c05f6912d6..2cfcf22d47b7d9cf3c85edfe498c5f23a18a9a19:/src/motif/settings.cpp?ds=inline diff --git a/src/motif/settings.cpp b/src/motif/settings.cpp index 03ab6e5a6e..628c7c1774 100644 --- a/src/motif/settings.cpp +++ b/src/motif/settings.cpp @@ -13,10 +13,6 @@ // per-user file, which can be edited using a Windows-control-panel clone. // Also they should be documented better. Some are very MS Windows-ish. -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "settings.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -161,11 +157,17 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) wxFont wxSystemSettingsNative::GetFont(wxSystemFont index) { + int pointSize = 12; + + if ( wxFont::GetDefaultEncoding() == wxFONTENCODING_SHIFT_JIS + || wxFont::GetDefaultEncoding() == wxFONTENCODING_EUC_JP) + pointSize = 15; + switch (index) { case wxSYS_SYSTEM_FIXED_FONT: { - return wxFont(12, wxMODERN, wxNORMAL, wxNORMAL, false); + return wxFont(pointSize, wxMODERN, wxNORMAL, wxNORMAL, false); break; } case wxSYS_DEVICE_DEFAULT_FONT: @@ -173,7 +175,7 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index) case wxSYS_DEFAULT_GUI_FONT: default: { - return wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, false); + return wxFont(pointSize, wxSWISS, wxNORMAL, wxNORMAL, false); break; } }