]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/fontutil.cpp
fixed setting of initial font under wxGTK2
[wxWidgets.git] / src / msw / fontutil.cpp
index 6bea2a9a399cf35b6e07b1a8cee4731cbf28f886..6ab9f34d8f577a0f78665a7088bf438ae4bbfd09 100644 (file)
@@ -190,7 +190,10 @@ wxFontEncoding wxGetFontEncFromCharSet(int cs)
     switch ( cs )
     {
         default:
     switch ( cs )
     {
         default:
-            // assume the system charset
+            wxFAIL_MSG( _T("unexpected Win32 charset") );
+            // fall through and assume the system charset
+
+        case DEFAULT_CHARSET:
             fontEncoding = wxFONTENCODING_SYSTEM;
             break;
 
             fontEncoding = wxFONTENCODING_SYSTEM;
             break;
 
@@ -198,6 +201,11 @@ wxFontEncoding wxGetFontEncFromCharSet(int cs)
             fontEncoding = wxFONTENCODING_CP1252;
             break;
 
             fontEncoding = wxFONTENCODING_CP1252;
             break;
 
+        case SYMBOL_CHARSET:
+            // what can we do here?
+            fontEncoding = wxFONTENCODING_MAX;
+            break;
+
 #if defined(__WIN32__) && !defined(__WXMICROWIN__)
         case EASTEUROPE_CHARSET:
             fontEncoding = wxFONTENCODING_CP1250;
 #if defined(__WIN32__) && !defined(__WXMICROWIN__)
         case EASTEUROPE_CHARSET:
             fontEncoding = wxFONTENCODING_CP1250;