X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e1d0be19102670c4ea8c08ec5b9fd9467dcf02c..fa1c12bdd76acc21ddb45b90bb53b2f58aed946d:/src/mac/carbon/fontutil.cpp diff --git a/src/mac/carbon/fontutil.cpp b/src/mac/carbon/fontutil.cpp index c5a0f583d6..4f61d13ff4 100644 --- a/src/mac/carbon/fontutil.cpp +++ b/src/mac/carbon/fontutil.cpp @@ -48,18 +48,12 @@ // ---------------------------------------------------------------------------- // convert to/from the string representation: format is -// encodingid;facename[;charset] +// facename[;charset] bool wxNativeEncodingInfo::FromString(const wxString& s) { wxStringTokenizer tokenizer(s, _T(";")); - wxString encid = tokenizer.GetNextToken(); - long enc; - if ( !encid.ToLong(&enc) ) - return FALSE; - encoding = (wxFontEncoding)enc; - facename = tokenizer.GetNextToken(); if ( !facename ) return FALSE; @@ -85,10 +79,7 @@ bool wxNativeEncodingInfo::FromString(const wxString& s) wxString wxNativeEncodingInfo::ToString() const { - wxString s; - - s << (long)encoding << _T(';') << facename; - + wxString s(facename); if ( charset != 0 ) { s << _T(';') << charset; @@ -159,8 +150,6 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding, return FALSE; } - info->encoding = encoding; - return TRUE; }