X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f0c8f31f407ecfce909060464c0ea655221cdab..a4761b4c08e6272c69bd242b3323ab47dbbc8902:/src/osx/carbon/font.cpp diff --git a/src/osx/carbon/font.cpp b/src/osx/carbon/font.cpp index da34391d86..53a3061271 100644 --- a/src/osx/carbon/font.cpp +++ b/src/osx/carbon/font.cpp @@ -316,7 +316,7 @@ static CTFontDescriptorRef wxMacCreateCTFontDescriptor(CFStringRef iFamilyName, wxFontRefData::wxFontRefData( wxUint32 coreTextFontType ) { CTFontRef font = CTFontCreateUIFontForLanguage( coreTextFontType, 0.0, NULL ) ; - if ( CTFontGetSize(m_ctFont) == 0 ) + if ( CTFontGetSize(font) == 0 ) { CFRelease(font); font = CTFontCreateUIFontForLanguage( coreTextFontType, 12.0, NULL ); @@ -391,12 +391,12 @@ void wxFontRefData::MacFindFont() break ; case wxSWISS : - m_faceName = wxT("Lucida Grande"); + m_faceName = wxT("Helvetica"); break ; case wxMODERN : case wxTELETYPE: - m_faceName = wxT("Monaco"); + m_faceName = wxT("Courier"); break ; default: @@ -446,7 +446,7 @@ void wxFontRefData::MacFindFont() m_ctFont.reset( CTFontCreateWithFontDescriptor( m_ctFontDescriptor, m_pointSize, NULL ) ); #endif } -#if wxMAC_USE_ATSU_TEXT == 0 +#if wxMAC_USE_ATSU_TEXT OSStatus status = noErr; CTFontDescriptorRef desc = m_ctFontDescriptor ; ATSFontRef atsfont = CTFontGetPlatformFont( m_ctFont, &desc ); @@ -542,12 +542,12 @@ void wxFontRefData::MacFindFont() break ; case wxSWISS : - m_faceName = wxT("Lucida Grande"); + m_faceName = wxT("Helvetica"); break ; case wxMODERN : case wxTELETYPE: - m_faceName = wxT("Monaco"); + m_faceName = wxT("Courier"); break ; default: