X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fdb23edd611d62b48a8678268bee8900c0bb4fa..689d801314845c6db093358a81c7879b672aa5e6:/src/osx/carbon/font.cpp?ds=sidebyside diff --git a/src/osx/carbon/font.cpp b/src/osx/carbon/font.cpp index a03c463027..d1c72dac07 100644 --- a/src/osx/carbon/font.cpp +++ b/src/osx/carbon/font.cpp @@ -394,9 +394,9 @@ void wxFontRefData::MacFindFont() case wxFONTFAMILY_MODERN : case wxFONTFAMILY_TELETYPE: m_faceName = wxT("Courier"); - if ( m_style == wxFONTFAMILY_ITALIC && m_weight == wxFONTFAMILY_NORMAL ) + if ( m_style == wxFONTSTYLE_ITALIC && m_weight == wxFONTWEIGHT_NORMAL ) { - m_style = wxFONTFAMILY_ITALIC; + m_style = wxFONTSTYLE_ITALIC; } break ; @@ -754,7 +754,7 @@ bool wxFont::MacCreateFromCTFontDescriptor( const void * ctFontDescriptor , int #endif -#if wxOSX_USE_CARBON +#if wxOSX_USE_ATSU_TEXT bool wxFont::MacCreateFromThemeFont(wxUint16 themeFontID) { #if wxOSX_USE_CORE_TEXT @@ -763,7 +763,6 @@ bool wxFont::MacCreateFromThemeFont(wxUint16 themeFontID) return MacCreateFromUIFont(HIThemeGetUIFontType(themeFontID)); } #endif -#if wxOSX_USE_ATSU_TEXT { UnRef(); @@ -775,7 +774,6 @@ bool wxFont::MacCreateFromThemeFont(wxUint16 themeFontID) RealizeResource(); return true; } -#endif return false; } #endif