X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..3b5d20079c81e0106b3dead7cd8d7337bf3f36f4:/src/mac/classic/font.cpp diff --git a/src/mac/classic/font.cpp b/src/mac/classic/font.cpp index 09feb155c6..0e37f57721 100644 --- a/src/mac/classic/font.cpp +++ b/src/mac/classic/font.cpp @@ -20,10 +20,10 @@ #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/fontutil.h" @@ -132,6 +132,9 @@ public: public: void MacFindFont() ; }; + +#define M_FONTDATA ((wxFontRefData*)m_refData) + // ============================================================================ // implementation // ============================================================================ @@ -339,13 +342,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)