]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/font.cpp
Funny resize behaviour fix.
[wxWidgets.git] / src / msw / font.cpp
index e318eeb71f65e9480a377ba2567797a88ecb35e7..e02b116efa1889b138af052d858e154c605c41ef 100644 (file)
 
 #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");