X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aa89a22b8e47000c98bff05c6f545f331f1c353..78606adf3a792c767d6498882e81547990180c96:/src/mac/carbon/fontutil.cpp diff --git a/src/mac/carbon/fontutil.cpp b/src/mac/carbon/fontutil.cpp index e352f7269e..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" @@ -36,6 +32,7 @@ #include "wx/fontutil.h" #include "wx/fontmap.h" +#include "wx/encinfo.h" #include "wx/tokenzr.h" @@ -102,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 ; } + +