From: Václav Slavík Date: Tue, 9 Sep 2008 12:31:44 +0000 (+0000) Subject: removed superfluous font size scaling in wxGtkPrinterDCImpl::SetFont() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3e7ea45c59410715c4e4f70e89690b71cb1dfa79 removed superfluous font size scaling in wxGtkPrinterDCImpl::SetFont() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index a1cd4c3043..c275c56e09 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -1911,14 +1911,8 @@ void wxGtkPrinterDCImpl::SetFont( const wxFont& font ) if (m_fontdesc) pango_font_description_free( m_fontdesc ); - m_fontdesc = pango_font_description_copy( m_font.GetNativeFontInfo()->description ); // m_fontdesc is now set to device units + m_fontdesc = pango_font_description_copy( m_font.GetNativeFontInfo()->description ); - // Scale font description from device units to pango units - gint oldSize = pango_font_description_get_size( m_fontdesc ); - double size = oldSize *m_DEV2PS; // scale to cairo units - pango_font_description_set_size( m_fontdesc, (gint)size ); // apply to description - - // Actually apply scaled font. pango_layout_set_font_description( m_layout, m_fontdesc ); } }