X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46eed000d666418b3ba5e98190056cc2e9be4c6a..27f35b6674b796e61986681261ec7a96bef93502:/src/gtk1/font.cpp diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index e8dbe802e5..a27989e105 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -179,15 +179,16 @@ void wxFontRefData::Init(int pointSize, m_underlined = underlined; m_encoding = encoding; - +#ifdef __WXGTK20__ // Create native font info m_nativeFontInfo.description = pango_font_description_new(); // And set its values switch (m_family) { + case wxFONTFAMILY_MODERN: case wxFONTFAMILY_TELETYPE: - pango_font_description_set_family( m_nativeFontInfo.description, "monospaced" ); + pango_font_description_set_family( m_nativeFontInfo.description, "monospace" ); break; case wxFONTFAMILY_SWISS: pango_font_description_set_family( m_nativeFontInfo.description, "serif" ); @@ -199,6 +200,7 @@ void wxFontRefData::Init(int pointSize, SetStyle( m_style ); SetPointSize( m_pointSize ); SetWeight( m_weight ); +#endif } wxFontRefData::wxFontRefData( const wxFontRefData& data ) @@ -273,7 +275,7 @@ wxFontRefData::wxFontRefData(const wxString& fontname) break; } - if (m_faceName == wxT("monospaced")) + if (m_faceName == wxT("monospace")) { m_family = wxFONTFAMILY_TELETYPE; }