supporting AA font flags on wxGCDC, fixes #10579

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-03-13 17:53:58 +00:00
parent 5f05e51454
commit 92a942606f

View File

@@ -450,6 +450,12 @@ void wxGCDCImpl::SetFont( const wxFont &font )
if ( f.IsOk() )
f.SetPointSize( /*LogicalToDeviceYRel*/(font.GetPointSize()));
m_graphicContext->SetFont( f, m_textForegroundColour );
#if defined(__WXGTK__) || defined(__WXOSX__)
if ( m_font.GetNoAntiAliasing() )
{
m_graphicContext->SetAntialiasMode(wxANTIALIAS_NONE);
}
#endif
}
}