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:
@@ -1228,7 +1228,7 @@ void wxMacControl::SetFont( const wxFont & font , const wxColour& foreground , l
|
||||
flush = kHIThemeTextHorizontalFlushCenter;
|
||||
else if ( ( windowStyle & wxALIGN_MASK ) & wxALIGN_RIGHT )
|
||||
flush = kHIThemeTextHorizontalFlushRight;
|
||||
HIViewSetTextFont( m_controlRef , part , (CTFontRef) font.MacGetCTFont() );
|
||||
HIViewSetTextFont( m_controlRef , part , (CTFontRef) font.GetCTFont() );
|
||||
HIViewSetTextHorizontalFlush( m_controlRef, part, flush );
|
||||
|
||||
if ( foreground != *wxBLACK || ignoreBlack == false )
|
||||
@@ -1269,7 +1269,7 @@ void wxMacControl::SetFont( const wxFont & font , const wxColour& foreground , l
|
||||
{
|
||||
fontStyle.font = font.MacGetFontNum();
|
||||
fontStyle.style = font.MacGetFontStyle();
|
||||
fontStyle.size = font.MacGetFontSize();
|
||||
fontStyle.size = font.GetPointSize();
|
||||
fontStyle.flags = kControlUseFontMask | kControlUseFaceMask | kControlUseSizeMask;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user