using statically allocated font objects for speedup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -499,6 +499,11 @@ bool wxFont::Create(const wxNativeFontInfo& info)
|
||||
return true;
|
||||
}
|
||||
|
||||
wxFont::wxFont(wxOSXSystemFont font)
|
||||
{
|
||||
m_refData = new wxFontRefData( font, 0 );
|
||||
}
|
||||
|
||||
wxFont::wxFont(const wxString& fontdesc)
|
||||
{
|
||||
wxNativeFontInfo info;
|
||||
@@ -557,15 +562,6 @@ bool wxFont::Create(int pointSize,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxFont::CreateSystemFont(wxOSXSystemFont font)
|
||||
{
|
||||
UnRef();
|
||||
|
||||
m_refData = new wxFontRefData( font, 0 );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
wxFont::~wxFont()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user