X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..7e4fb3b8168f4f2dbf2f8a246d3e094a8ccba194:/src/mgl/font.cpp diff --git a/src/mgl/font.cpp b/src/mgl/font.cpp index d044a439ce..06d972feee 100644 --- a/src/mgl/font.cpp +++ b/src/mgl/font.cpp @@ -74,6 +74,8 @@ private: wxMGLFontLibrary *m_library; bool m_valid; + wxNativeFontInfo m_info; + friend class wxFont; }; @@ -264,6 +266,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