summaryrefslogtreecommitdiff
path: root/pango/pangocairo-font.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-12-28 03:17:55 -0600
committerBehdad Esfahbod <behdad@behdad.org>2010-12-28 03:17:55 -0600
commit34448ab65f41dfb0c098a3e0d112b084ef84f8d8 (patch)
tree3a267f97b686a1067744a44bebc6d8913996c594 /pango/pangocairo-font.c
parent4da05d60a8c9e7f22329c58264e0ca6c683dbf0c (diff)
downloadpango-34448ab65f41dfb0c098a3e0d112b084ef84f8d8.tar.gz
Bug 636348 - Hex boxes are incorrectly scaled with non identity cairo scale
Diffstat (limited to 'pango/pangocairo-font.c')
-rw-r--r--pango/pangocairo-font.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index 1f6382b8..df0a7777 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 */