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:
@@ -171,7 +171,7 @@ CGColorRef wxMacCreateCGColor( const wxColour& col )
|
||||
CTFontRef wxMacCreateCTFont( const wxFont& font )
|
||||
{
|
||||
#ifdef __WXMAC__
|
||||
return wxCFRetain((CTFontRef) font.MacGetCTFont());
|
||||
return wxCFRetain((CTFontRef) font.GetCTFont());
|
||||
#else
|
||||
return CTFontCreateWithName( wxCFStringRef( font.GetFaceName(), wxLocale::GetSystemEncoding() ) , font.GetPointSize() , NULL );
|
||||
#endif
|
||||
@@ -859,7 +859,7 @@ wxMacCoreGraphicsFontData::wxMacCoreGraphicsFontData(wxGraphicsRenderer* rendere
|
||||
|
||||
// we need the scale here ...
|
||||
|
||||
Fixed atsuSize = IntToFixed( int( 1 * font.MacGetFontSize()) );
|
||||
Fixed atsuSize = IntToFixed( int( 1 * font.GetPointSize()) );
|
||||
RGBColor atsuColor ;
|
||||
col.GetRGBColor( &atsuColor );
|
||||
ATSUAttributeTag atsuTags[] =
|
||||
|
Reference in New Issue
Block a user