[pango] Bug 636348 - Hex boxes are incorrectly scaled with non identity cairo scale
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Bug 636348 - Hex boxes are incorrectly scaled with non identity cairo scale
- Date: Tue, 28 Dec 2010 09:18:09 +0000 (UTC)
commit 34448ab65f41dfb0c098a3e0d112b084ef84f8d8
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]