X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b83552acf359689c43d641175f7292391f6a9e6..f2a5052baa9f3cf87a5198e445021b8a6a1be134:/src/gtk1/font.cpp diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 9970976eff..c6a1888c16 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -23,8 +23,8 @@ #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/settings.h" - #include "wx/cmndata.h" #include "wx/gdicmn.h" + #include "wx/encinfo.h" #endif #include "wx/fontutil.h" @@ -450,8 +450,6 @@ void wxFontRefData::SetNativeFontInfo(const wxNativeFontInfo& info) // wxFont creation // ---------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) - wxFont::wxFont(const wxNativeFontInfo& info) { (void) Create(info.GetXFontName()); @@ -534,10 +532,8 @@ wxString wxFont::GetFaceName() const return M_FONTDATA->m_faceName; } -wxFontFamily wxFont::GetFamily() const +wxFontFamily wxFont::DoGetFamily() const { - wxCHECK_MSG( Ok(), wxFONTFAMILY_MAX, wxT("invalid font") ); - return M_FONTDATA->m_family; }