- }
-
- switch ( encoding )
- {
- // although this function is supposed to return an exact match, do do
- // some mappings here for the most common case of "standard" encoding
- case wxFONTENCODING_SYSTEM:
- case wxFONTENCODING_ISO8859_1:
- case wxFONTENCODING_ISO8859_15:
- case wxFONTENCODING_CP1252:
- info->charset = 0;
- break;
-
- case wxFONTENCODING_CP1250:
- info->charset = 0;
- break;
-
- case wxFONTENCODING_CP1251:
- info->charset = 0;
- break;
-
- case wxFONTENCODING_CP1253:
- info->charset = 0;
- break;
-
- case wxFONTENCODING_CP1254:
- info->charset = 0;
- break;
-
- case wxFONTENCODING_CP1255:
- info->charset = 0;
- break;
-
- case wxFONTENCODING_CP1256:
- info->charset = 0;
- break;
-
- case wxFONTENCODING_CP1257:
- info->charset = 0;
- break;
-
- case wxFONTENCODING_CP437:
- info->charset = 0;
- break;
-
- default:
- // no way to translate this encoding into a Windows charset
- return FALSE;
- }