#pragma hdrstop
#endif
-#include "wx/string.h"
#include "wx/font.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+ #include "wx/utils.h"
+ #include "wx/gdicmn.h"
+#endif
+
#include "wx/fontutil.h"
-#include "wx/gdicmn.h"
-#include "wx/utils.h"
#include "wx/fontutil.h"
void wxFontRefData::MacFindFont()
{
- if( m_faceName.Length() == 0 )
+ if( m_faceName.empty() )
{
switch( m_family )
{
RealizeResource();
}
-void wxFont::SetFaceName(const wxString& faceName)
+bool wxFont::SetFaceName(const wxString& faceName)
{
Unshare();
M_FONTDATA->m_faceName = faceName;
RealizeResource();
+
+ return wxFontBase::SetFaceName(faceName);
}
void wxFont::SetUnderlined(bool underlined)