Bug 636348 - Hex boxes are incorrectly scaled with non identity cairo scale
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 28 Dec 2010 09:17:55 +0000 (03:17 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 28 Dec 2010 09:17:55 +0000 (03:17 -0600)
pango/pangocairo-font.c

index 1f6382b..df0a777 100644 (file)
@@ -433,6 +433,8 @@ _pango_cairo_font_private_get_hex_box_info (PangoCairoFontPrivate *cf_priv)
   pango_ctm.x0 = cairo_ctm.x0;
   pango_ctm.y0 = cairo_ctm.y0;
 
+  size /= pango_matrix_get_font_scale_factor (&pango_ctm);
+
   if (is_hinted)
     {
       /* prepare for some hinting */