X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/050ffabbc394aecb975be9f90712d04c31c91857..78606adf3a792c767d6498882e81547990180c96:/src/mac/carbon/fontutil.cpp?ds=inline diff --git a/src/mac/carbon/fontutil.cpp b/src/mac/carbon/fontutil.cpp index 04c8f22e11..8330cd1ec1 100644 --- a/src/mac/carbon/fontutil.cpp +++ b/src/mac/carbon/fontutil.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "fontutil.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -103,58 +99,15 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding, encoding = wxFont::GetDefaultEncoding(); } - 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; - } + info->encoding = encoding ; return TRUE; } bool wxTestFontEncoding(const wxNativeEncodingInfo& info) { - return TRUE; + // basically we should be able to support every encoding via the OS + return true ; } + +