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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user