reworked font handling for osx
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1352,11 +1352,7 @@ void wxWidgetCocoaImpl::SetControlSize( wxWindowVariant variant )
|
||||
void wxWidgetCocoaImpl::SetFont(wxFont const& font, wxColour const&, long, bool)
|
||||
{
|
||||
if ([m_osxView respondsToSelector:@selector(setFont:)])
|
||||
#if wxOSX_USE_CORE_TEXT
|
||||
[m_osxView setFont: (NSFont*)font.MacGetCTFont()];
|
||||
#else
|
||||
|
||||
#endif
|
||||
[m_osxView setFont: font.GetNSFont()];
|
||||
}
|
||||
|
||||
void wxWidgetCocoaImpl::InstallEventHandler( WXWidget control )
|
||||
|
||||
Reference in New Issue
Block a user