#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
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");