Change wxFont::GetEncoding to return UTF8 for wxQt

QT doesn't have the concept of font encoding and is generally Unicode
aware throughout. The previous implementation of wxFont::GetEncoding for
wxQT returned a nonsensical value.

Closes https://github.com/wxWidgets/wxWidgets/pull/1070
This commit is contained in:
Graham Dawes
2018-12-12 09:59:49 +00:00
committed by Vadim Zeitlin
parent 6c5c9e578b
commit 331dc1fdfe

View File

@@ -451,10 +451,7 @@ wxFontFamily wxNativeFontInfo::GetFamily() const
wxFontEncoding wxNativeFontInfo::GetEncoding() const
{
// QFontInfo info = QFontInfo(m_qtFont);
wxMISSING_IMPLEMENTATION( __FUNCTION__ );
return wxFONTENCODING_MAX;
return wxFONTENCODING_UTF8;
}
void wxNativeFontInfo::SetFractionalPointSize(float pointsize)