diff --git a/src/qt/font.cpp b/src/qt/font.cpp index 79e66fc81a..7e328d099a 100644 --- a/src/qt/font.cpp +++ b/src/qt/font.cpp @@ -469,9 +469,18 @@ void wxNativeFontInfo::SetPixelSize(const wxSize& size) void wxNativeFontInfo::SetStyle(wxFontStyle style) { - m_qtFont.setItalic(style == wxFONTSTYLE_ITALIC); -//case wxFONTSTYLE_SLANT: -//case wxFONTSTYLE_NORMAL: + switch(style) + { + case wxFONTSTYLE_ITALIC: + m_qtFont.setStyle(QFont::StyleItalic); + break; + case wxFONTSTYLE_NORMAL: + m_qtFont.setStyle(QFont::StyleNormal); + break; + case wxFONTSTYLE_SLANT: + m_qtFont.setStyle(QFont::StyleOblique); + break; + } } void wxNativeFontInfo::SetNumericWeight(int weight)