X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7533ba252ba505f159f504a34877793fb32d8bca..5cb61fed97c78e0399ba18457e45b51f8eb15edf:/src/gtk1/font.cpp?ds=inline diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index fd221b789f..9e42fdf9e6 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -464,10 +464,7 @@ void wxFontRefData::SetPointSize(int pointSize) m_pointSize = pointSize; #ifdef __WXGTK20__ - // Get native info - PangoFontDescription *desc = m_nativeFontInfo.description; - - pango_font_description_set_size( desc, m_pointSize * PANGO_SCALE ); + m_nativeFontInfo.SetPointSize(pointSize); #else if ( HasNativeFont() ) { @@ -567,7 +564,9 @@ void wxFontRefData::SetFaceName(const wxString& facename) { m_faceName = facename; -#ifndef __WXGTK20__ +#ifdef __WXGTK20__ + m_nativeFontInfo.SetFaceName(facename); +#else if ( HasNativeFont() ) { m_nativeFontInfo.SetXFontComponent(wxXLFD_FAMILY, facename);