several small fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-09-06 16:33:18 +00:00
parent e630b0f024
commit 36eca86160
4 changed files with 6 additions and 4 deletions

View File

@@ -451,10 +451,12 @@ void wxFontRefData::MacFindFont()
CTFontRef font2 = CTFontCreateCopyWithSymbolicTraits( font, m_pointSize, NULL, traits, 0x03 );
CFRelease(font);
m_ctFont.reset( font2 );
#if 0 // debugging coretext font matching
if ( (CTFontGetSymbolicTraits( m_ctFont ) & 0x03) != traits )
{
wxMessageBox( wxString::Format( "expected %d but got %d traits" , traits, (CTFontGetSymbolicTraits( m_ctFont ) & 0x03) ) );
}
#endif
}
}
#if wxOSX_USE_ATSU_TEXT