use on cocoa without fontmapper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1896,10 +1896,12 @@ public:
|
|||||||
Init(CFStringGetSystemEncoding()) ;
|
Init(CFStringGetSystemEncoding()) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_FONTMAP
|
||||||
wxMBConv_cocoa(const wxChar* name)
|
wxMBConv_cocoa(const wxChar* name)
|
||||||
{
|
{
|
||||||
Init( wxCFStringEncFromFontEnc(wxFontMapper::Get()->CharsetToEncoding(name, false) ) ) ;
|
Init( wxCFStringEncFromFontEnc(wxFontMapper::Get()->CharsetToEncoding(name, false) ) ) ;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
wxMBConv_cocoa(wxFontEncoding encoding)
|
wxMBConv_cocoa(wxFontEncoding encoding)
|
||||||
{
|
{
|
||||||
@@ -2415,8 +2417,12 @@ wxMBConv *wxCSConv::DoCreate() const
|
|||||||
if ( m_name || ( m_encoding <= wxFONTENCODING_UTF16 ) )
|
if ( m_name || ( m_encoding <= wxFONTENCODING_UTF16 ) )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#if wxUSE_FONTMAP
|
||||||
wxMBConv_cocoa *conv = m_name ? new wxMBConv_cocoa(m_name)
|
wxMBConv_cocoa *conv = m_name ? new wxMBConv_cocoa(m_name)
|
||||||
: new wxMBConv_cocoa(m_encoding);
|
: new wxMBConv_cocoa(m_encoding);
|
||||||
|
#else
|
||||||
|
wxMBConv_cocoa *conv = new wxMBConv_cocoa(m_encoding);
|
||||||
|
#endif
|
||||||
if ( conv->IsOk() )
|
if ( conv->IsOk() )
|
||||||
return conv;
|
return conv;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user