X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e75491071dbefcada61175e3eb89ce4edf335983..8290d43d0d43369d007f1c47abf98a45da461a30:/src/mac/font.cpp?ds=sidebyside diff --git a/src/mac/font.cpp b/src/mac/font.cpp index d7d7b12cc8..a5df9049a2 100644 --- a/src/mac/font.cpp +++ b/src/mac/font.cpp @@ -18,9 +18,7 @@ #include "wx/font.h" #include "wx/gdicmn.h" -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) -#endif @@ -149,6 +147,15 @@ bool wxFont::RealizeResource() return TRUE; } +void wxFont::SetEncoding(wxFontEncoding encoding) +{ + Unshare(); + + M_FONTDATA->m_encoding = encoding; + + RealizeResource(); +} + void wxFont::Unshare() { // Don't change shared data @@ -232,11 +239,6 @@ int wxFont::GetFamily() const return M_FONTDATA->m_family; } -int wxFont::GetFontId() const -{ - return M_FONTDATA->m_fontId; -} - int wxFont::GetStyle() const { return M_FONTDATA->m_style;