git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50345
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFontRefData::~wxFontRefData()
{
+#if wxMAC_USE_ATSU_TEXT
if ( m_macATSUStyle )
{
::ATSUDisposeStyle((ATSUStyle)m_macATSUStyle);
m_macATSUStyle = NULL ;
}
+#endif
}
#if wxMAC_USE_CORE_TEXT
void wxFontRefData::MacFindFont()
{
- OSStatus status = noErr;
#if wxMAC_USE_CORE_TEXT
if ( UMAGetSystemVersion() >= 0x1050 )
#endif
#if wxMAC_USE_ATSU_TEXT
{
+ OSStatus status = noErr;
Str255 qdFontName ;
if ( m_macThemeFontID != kThemeCurrentPortFont )
{
return MacCreateUIFont(HIThemeGetUIFontType(themeFontID));
}
#endif
-#if wxMAC_USE_CORE_TEXT
+#if wxMAC_USE_ATSU_TEXT
{
UnRef();
M_FONTDATA->m_macThemeFontID = themeFontID ;
RealizeResource();
+ return true;
}
- return true;
#endif
+ return false;
}
wxFont::~wxFont()