[pango/1.28] Bug 636348 - Hex boxes are incorrectly scaled with non identity cairo scale



commit 19be0cbd483456cfba8faf9be367a45ef5f1396a
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Dec 28 03:17:55 2010 -0600

    Bug 636348 - Hex boxes are incorrectly scaled with non identity cairo scale

 pango/pangocairo-font.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index 1f6382b..df0a777 100644
--- a/pango/pangocairo-font.c
+++ b/pango/pangocairo-font.c
@@ -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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]