// 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"
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:
case wxSYS_DEFAULT_GUI_FONT:
default:
{
- return wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, false);
+ return wxFont(pointSize, wxSWISS, wxNORMAL, wxNORMAL, false);
break;
}
}
}
// Get a system metric, e.g. scrollbar size
-int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
+int wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(win))
{
int return_value = 0;