diff --git a/include/wx/osx/font.h b/include/wx/osx/font.h index d54e79e17e..c82194d70f 100644 --- a/include/wx/osx/font.h +++ b/include/wx/osx/font.h @@ -127,10 +127,7 @@ public: int weight, bool underlined = false, const wxString& face = wxEmptyString, - wxFontEncoding encoding = wxFONTENCODING_DEFAULT) - { - (void)Create(size, (wxFontFamily)family, (wxFontStyle)style, (wxFontWeight)weight, underlined, face, encoding); - } + wxFontEncoding encoding = wxFONTENCODING_DEFAULT); // implementation only from now on diff --git a/src/osx/carbon/font.cpp b/src/osx/carbon/font.cpp index c3ad61eb15..7dd90920d1 100644 --- a/src/osx/carbon/font.cpp +++ b/src/osx/carbon/font.cpp @@ -557,6 +557,18 @@ wxFont::wxFont(const wxString& fontdesc) (void)Create(info); } +wxFont::wxFont(int size, + int family, + int style, + int weight, + bool underlined, + const wxString& face, + wxFontEncoding encoding) +{ + (void)Create(size, (wxFontFamily)family, (wxFontStyle)style, + (wxFontWeight)weight, underlined, face, encoding); +} + bool wxFont::Create(int pointSize, wxFontFamily family, wxFontStyle style,