]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/font.cpp
added back 2 extra pixels for the best size under XP
[wxWidgets.git] / src / mgl / font.cpp
index 1798b69d062456a1ca6307bf27799616ea4e9b57..1b9410516b98e21f9cc65a809478869ff7770f7f 100644 (file)
     #include "wx/log.h"
     #include "wx/utils.h"
     #include "wx/settings.h"
+    #include "wx/cmndata.h"
+    #include "wx/gdicmn.h"
 #endif
 
 #include "wx/fontutil.h"
-#include "wx/cmndata.h"
-#include "wx/gdicmn.h"
 #include "wx/tokenzr.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)