wxFont remembers facename of actual font used

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-03-17 18:16:08 +00:00
parent b2cf617cb8
commit fb04b3438d

View File

@@ -204,6 +204,7 @@ bool wxFont::RealizeResource()
LOGFONT lf; LOGFONT lf;
wxFillLogFont(&lf, this); wxFillLogFont(&lf, this);
M_FONTDATA->m_hFont = (WXHFONT)::CreateFontIndirect(&lf); M_FONTDATA->m_hFont = (WXHFONT)::CreateFontIndirect(&lf);
M_FONTDATA->m_faceName = lf.lfFaceName;
if ( !M_FONTDATA->m_hFont ) if ( !M_FONTDATA->m_hFont )
{ {
wxLogLastError("CreateFont"); wxLogLastError("CreateFont");