diff --git a/src/qt/font.cpp b/src/qt/font.cpp index f9e5b1fd9b..6cfebf895e 100644 --- a/src/qt/font.cpp +++ b/src/qt/font.cpp @@ -563,7 +563,7 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family) { m_qtFont.setStyleHint(ConvertFontFamily(family)); // 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))