Apply font family for wxFont in wxQt

Closes https://github.com/wxWidgets/wxWidgets/pull/1512
This commit is contained in:
Graham Dawes 2019-08-28 16:09:06 +01:00 committed by Vadim Zeitlin
parent 39cb337008
commit 8c18ee8c25

View File

@ -563,7 +563,7 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family)
{ {
m_qtFont.setStyleHint(ConvertFontFamily(family)); m_qtFont.setStyleHint(ConvertFontFamily(family));
// reset the face name to force qt to choose a new font // reset the face name to force qt to choose a new font
m_qtFont.setFamily(""); m_qtFont.setFamily(m_qtFont.defaultFamily());
} }
void wxNativeFontInfo::SetEncoding(wxFontEncoding WXUNUSED(encoding)) void wxNativeFontInfo::SetEncoding(wxFontEncoding WXUNUSED(encoding))