summaryrefslogtreecommitdiff
path: root/pango/pango-ot-info.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-05-19 15:54:43 -0400
committerBehdad Esfahbod <behdad@behdad.org>2010-05-19 15:54:43 -0400
commitcc66aacf34962b7e874c11da26f2a0c987e69737 (patch)
treed292fbbf52db8466d01c98e100732087b6d5afd4 /pango/pango-ot-info.c
parent138f5264b74a31646e289f39c52e6bddcf6a64f7 (diff)
downloadpango-cc66aacf34962b7e874c11da26f2a0c987e69737.tar.gz
Adjust to hb-ng scale cleanup
Diffstat (limited to 'pango/pango-ot-info.c')
-rw-r--r--pango/pango-ot-info.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index 961f30f9..cdb4d38f 100644
--- a/pango/pango-ot-info.c
+++ b/pango/pango-ot-info.c
@@ -536,8 +536,8 @@ _pango_ot_info_position (const PangoOTInfo *info,
/* XXX reuse hb_font */
hb_font = hb_font_create ();
hb_font_set_scale (hb_font,
- info->face->size->metrics.x_scale,
- info->face->size->metrics.y_scale);
+ ((guint64) info->face->size->metrics.x_scale * info->face->units_per_EM) >> 12,
+ ((guint64) info->face->size->metrics.y_scale * info->face->units_per_EM) >> 12);
is_hinted = buffer->font->is_hinted;
hb_font_set_ppem (hb_font,
is_hinted ? info->face->size->metrics.x_ppem : 0,
@@ -558,7 +558,7 @@ _pango_ot_info_position (const PangoOTInfo *info,
{
PangoRectangle logical_rect;
pango_font_get_glyph_extents ((PangoFont *) buffer->font, hb_glyph->codepoint, NULL, &logical_rect);
- hb_position->x_advance = PANGO_UNITS_TO_26_6 (logical_rect.width);
+ hb_position->x_advance = logical_rect.width;
}
else
hb_position->x_advance = 0;