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
|
wxFontEncoding wxNativeFontInfo::GetEncoding() const
|
||||||
{
|
{
|
||||||
// QFontInfo info = QFontInfo(m_qtFont);
|
return wxFONTENCODING_UTF8;
|
||||||
wxMISSING_IMPLEMENTATION( __FUNCTION__ );
|
|
||||||
|
|
||||||
return wxFONTENCODING_MAX;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxNativeFontInfo::SetFractionalPointSize(float pointsize)
|
void wxNativeFontInfo::SetFractionalPointSize(float pointsize)
|
||||||
|
Reference in New Issue
Block a user