X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07cf98cb8eb7625eeffc95e407a9fa1ad863b451..15909a16b313e09d05f40fc9b95b414d7c83bac1:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index bd43058f11..e02b116efa 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -39,13 +39,7 @@ #include "wx/msw/private.h" -#if !USE_SHARED_LIBRARIES - IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) - - #if wxUSE_PORTABLE_FONTS_IN_MSW - IMPLEMENT_DYNAMIC_CLASS(wxFontNameDirectory, wxObject) - #endif -#endif +IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) // ---------------------------------------------------------------------------- // wxFontRefData - the internal description of the font @@ -206,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");