From 3e7ea45c59410715c4e4f70e89690b71cb1dfa79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 9 Sep 2008 12:31:44 +0000 Subject: [PATCH] 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 --- src/gtk/print.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 ); } } -- 2.50.0