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:
@@ -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");
|
||||||
|
Reference in New Issue
Block a user