]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/font.cpp
Rich text lib separation.
[wxWidgets.git] / src / mac / classic / font.cpp
index 42445ce21a4629516bb43fc46daeed73ecb3adb8..e2757af968e2ef26f84de2fedcad0861771f4999 100644 (file)
 
 #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"
 
@@ -339,13 +339,15 @@ void wxFont::SetWeight(int weight)
     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)