]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/font.cpp
When making the DLL with glcanvas then you have to link the dll with
[wxWidgets.git] / src / msw / font.cpp
index bd43058f114661992ba83c1eed453e1226ce7560..54ef9aced840e1700b153be9ca7939e08dfd581a 100644 (file)
 
 #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
 
 // ----------------------------------------------------------------------------
 // wxFontRefData - the internal description of the font
@@ -206,6 +204,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");