Return wxFont adjusted to DPI in wxHtmlWinParser::CreateCurrentFont()

See #18564.
This commit is contained in:
Maarten Bent
2020-11-25 23:52:00 +01:00
parent 78decce3d8
commit f4dcac9f44

View File

@@ -619,6 +619,10 @@ wxFont* wxHtmlWinParser::CreateCurrentFont()
*encptr = m_OutputEnc;
#endif
}
#ifdef __WXMSW__
if ( m_windowInterface && m_windowInterface->GetHTMLWindow() )
(*fontptr)->WXAdjustToPPI(m_windowInterface->GetHTMLWindow()->GetDPI());
#endif
m_DC->SetFont(**fontptr);
return (*fontptr);
}