X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c41c20a566cb7558661a68c0ed6712a84982093f..4837b89e3b9ddc02a752d9937e3e1d9f92328851:/src/mgl/font.cpp diff --git a/src/mgl/font.cpp b/src/mgl/font.cpp index e3ac9a29d2..6bb8af4e47 100644 --- a/src/mgl/font.cpp +++ b/src/mgl/font.cpp @@ -14,10 +14,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "font.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -74,6 +70,8 @@ private: wxMGLFontLibrary *m_library; bool m_valid; + wxNativeFontInfo m_info; + friend class wxFont; }; @@ -264,6 +262,14 @@ bool wxFont::IsFixedWidth() const return (bool)(M_FONTDATA->m_library->GetFamily()->GetInfo()->isFixed); } +const wxNativeFontInfo *wxFont::GetNativeFontInfo() const +{ + wxCHECK_MSG( Ok(), NULL, wxT("invalid font") ); + + M_FONTDATA->m_info.InitFromFont(*this); + + return &(M_FONTDATA->m_info); +} // ---------------------------------------------------------------------------- // change font attributes