X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..15909a16b313e09d05f40fc9b95b414d7c83bac1:/src/msw/font.cpp?ds=sidebyside diff --git a/src/msw/font.cpp b/src/msw/font.cpp index e318eeb71f..e02b116efa 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -39,11 +39,7 @@ #include "wx/msw/private.h" - IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) - - #if wxUSE_PORTABLE_FONTS_IN_MSW - IMPLEMENT_DYNAMIC_CLASS(wxFontNameDirectory, wxObject) - #endif +IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) // ---------------------------------------------------------------------------- // wxFontRefData - the internal description of the font @@ -204,6 +200,7 @@ bool wxFont::RealizeResource() LOGFONT lf; wxFillLogFont(&lf, this); M_FONTDATA->m_hFont = (WXHFONT)::CreateFontIndirect(&lf); + M_FONTDATA->m_faceName = lf.lfFaceName; if ( !M_FONTDATA->m_hFont ) { wxLogLastError("CreateFont");