Applied font scaling patch (GetTextExtent()) to

new printing code as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-12-01 18:44:50 +00:00
parent 86baa52d22
commit 1523681581
2 changed files with 4 additions and 4 deletions

View File

@@ -1412,9 +1412,9 @@ void wxGnomePrintDC::DoGetTextExtent(const wxString& string, wxCoord *width, wxC
pango_layout_get_pixel_size( m_layout, &w, &h );
if (width)
*width = (wxCoord) w;
*width = (wxCoord)(w / m_scaleX);
if (height)
*height = (wxCoord) h;
*height = (wxCoord)(h / m_scaleY);
if (descent)
{
PangoLayoutIter *iter = pango_layout_get_iter(m_layout);