X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d2ad2f1dbd4f6d54b67a5b26913c96767cdeca6..9b7835a516d1acdeb007bed0c5bb80cae1643416:/src/mac/carbon/font.cpp?ds=sidebyside diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index 3c63ecb23b..0fcdd8ad72 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -254,6 +254,7 @@ void wxFontRefData::MacFindFont() break ; case wxMODERN : + case wxTELETYPE: m_faceName = wxT("Monaco"); break ; @@ -266,7 +267,7 @@ void wxFontRefData::MacFindFont() m_macFontFamily = FMGetFontFamilyFromName( qdFontName ); if ( m_macFontFamily == kInvalidFontFamily ) { - wxLogDebug( wxT("ATSFontFamilyFindFromName failed for %s"), m_faceName ); + wxLogDebug( wxT("ATSFontFamilyFindFromName failed for %s"), m_faceName.c_str() ); m_macFontFamily = GetAppFont(); } #endif @@ -554,7 +555,7 @@ wxSize wxFont::GetPixelSize() const dc->GetTextExtent( wxT("g"), &width, &height, NULL, NULL); return wxSize((int)width, (int)height); #else - wxFontBase::GetPixelSize(); + return wxFontBase::GetPixelSize(); #endif }