]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/font.cpp
miscellaneous wxFont enhancements (patch 1496606):
[wxWidgets.git] / src / mgl / font.cpp
index 7c4f8903ab44d5f3a7553cdac8127f3f6fcf9d0f..ddd6799cc87975ff59b23b28eb0fd4ffe320552c 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/utils.h"
+    #include "wx/settings.h"
+    #include "wx/cmndata.h"
 #endif
 
 #include "wx/fontutil.h"
-#include "wx/cmndata.h"
 #include "wx/gdicmn.h"
 #include "wx/tokenzr.h"
-#include "wx/settings.h"
 #include "wx/mgl/private.h"
 
 // ----------------------------------------------------------------------------
@@ -311,12 +311,14 @@ void wxFont::SetWeight(int weight)
     M_FONTDATA->m_valid = false;
 }
 
-void wxFont::SetFaceName(const wxString& faceName)
+bool wxFont::SetFaceName(const wxString& faceName)
 {
     AllocExclusive();
 
     M_FONTDATA->m_faceName = faceName;
     M_FONTDATA->m_valid = false;
+
+    return wxFontBase::SetFaceName(faceName);
 }
 
 void wxFont::SetUnderlined(bool underlined)