X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df91131cb0f90ee8bfb194926a13b1a108ca3c6e..67193066b2d16ca36529216f70d093690d7e1123:/src/mac/classic/font.cpp diff --git a/src/mac/classic/font.cpp b/src/mac/classic/font.cpp index 42445ce21a..e2757af968 100644 --- a/src/mac/classic/font.cpp +++ b/src/mac/classic/font.cpp @@ -19,11 +19,11 @@ #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)