fix old font size restoration in DoGetTextExtent() [backport of r56791 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1836,8 +1836,8 @@ void wxGnomePrintDC::DoGetTextExtent(const wxString& string, wxCoord *width, wxC
|
||||
{
|
||||
// scale the font and apply it
|
||||
PangoFontDescription *desc = theFont->GetNativeFontInfo()->description;
|
||||
float size = pango_font_description_get_size(desc);
|
||||
size = size * GetFontPointSizeAdjustment(72.0);
|
||||
oldSize = pango_font_description_get_size(desc);
|
||||
float size = oldSize * GetFontPointSizeAdjustment(72.0);
|
||||
pango_font_description_set_size(desc, (gint)size);
|
||||
|
||||
pango_layout_set_font_description(m_layout, desc);
|
||||
|
Reference in New Issue
Block a user