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:
committed by
Vadim Zeitlin
parent
6c5c9e578b
commit
331dc1fdfe
@@ -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)
|
||||
|
Reference in New Issue
Block a user