Return wxFont adjusted to DPI in wxHtmlWinParser::CreateCurrentFont()
See #18564.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user