case wxFONTENCODING_CP1257:
info->charset = BALTIC_CHARSET;
break;
+
+ case wxFONTENCODING_CP874:
+ info->charset = THAI_CHARSET;
+ break;
#endif // !Win16
case wxFONTENCODING_CP437:
return FALSE;
}
+ info->encoding = encoding;
+
return TRUE;
}
wxZeroMemory(lf); // all default values
lf.lfCharSet = info.charset;
- strncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName));
+ wxStrncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName));
HFONT hfont = ::CreateFontIndirect(&lf);
if ( !hfont )
case TURKISH_CHARSET:
fontEncoding = wxFONTENCODING_CP1254;
break;
+
+ case THAI_CHARSET:
+ fontEncoding = wxFONTENCODING_CP437;
+ break;
#endif
case OEM_CHARSET: