]> git.saurik.com Git - wxWidgets.git/commitdiff
wxFont remembers facename of actual font used
authorRobin Dunn <robin@alldunn.com>
Fri, 17 Mar 2000 18:16:08 +0000 (18:16 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 17 Mar 2000 18:16:08 +0000 (18:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/font.cpp

index e318eeb71f65e9480a377ba2567797a88ecb35e7..54ef9aced840e1700b153be9ca7939e08dfd581a 100644 (file)
@@ -204,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");