diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index a1facc7a32..2fd0ad6f5f 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -205,9 +205,11 @@ void wxFontRefData::Init(int pointSize, case wxFONTFAMILY_TELETYPE: pango_font_description_set_family( m_nativeFontInfo.description, "monospace" ); break; - case wxFONTFAMILY_SWISS: + case wxFONTFAMILY_ROMAN: pango_font_description_set_family( m_nativeFontInfo.description, "serif" ); break; + case wxFONTFAMILY_SWISS: + // SWISS = sans serif default: pango_font_description_set_family( m_nativeFontInfo.description, "sans" ); break; @@ -276,6 +278,10 @@ void wxFontRefData::InitFromNative() { m_family = wxFONTFAMILY_SWISS; } + else if (m_faceName == wxT("serif")) + { + m_family = wxFONTFAMILY_ROMAN; + } else { m_family = wxFONTFAMILY_UNKNOWN; diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index a1facc7a32..2fd0ad6f5f 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -205,9 +205,11 @@ void wxFontRefData::Init(int pointSize, case wxFONTFAMILY_TELETYPE: pango_font_description_set_family( m_nativeFontInfo.description, "monospace" ); break; - case wxFONTFAMILY_SWISS: + case wxFONTFAMILY_ROMAN: pango_font_description_set_family( m_nativeFontInfo.description, "serif" ); break; + case wxFONTFAMILY_SWISS: + // SWISS = sans serif default: pango_font_description_set_family( m_nativeFontInfo.description, "sans" ); break; @@ -276,6 +278,10 @@ void wxFontRefData::InitFromNative() { m_family = wxFONTFAMILY_SWISS; } + else if (m_faceName == wxT("serif")) + { + m_family = wxFONTFAMILY_ROMAN; + } else { m_family = wxFONTFAMILY_UNKNOWN;