summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-12-17 23:51:46 -0500
committerBehdad Esfahbod <behdad@behdad.org>2012-12-17 23:52:51 -0500
commit97c470ebebb34ce3e5720a3a1003cf1c07e49308 (patch)
tree7cb521f51d204e60743e026f786f412eb7b5ce44 /modules
parent7f491a59f3674a19d84e01be098595e5ad40fc1d (diff)
downloadpango-97c470ebebb34ce3e5720a3a1003cf1c07e49308.tar.gz
Hint advances correctly
Diffstat (limited to 'modules')
-rw-r--r--modules/basic/basic-fc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c
index 991ad299..e93d471e 100644
--- a/modules/basic/basic-fc.c
+++ b/modules/basic/basic-fc.c
@@ -387,11 +387,10 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED,
if (context.vertical)
for (i = 0; i < num_glyphs; i++)
{
- /* XXX
+ unsigned int advance = hb_position->y_advance;
if (is_hinted)
advance = PANGO_UNITS_ROUND (advance);
- */
- glyphs->glyphs[i].geometry.width = hb_position->y_advance;
+ glyphs->glyphs[i].geometry.width = advance;
/* XXX */
glyphs->glyphs[i].geometry.x_offset = hb_position->y_offset;
glyphs->glyphs[i].geometry.y_offset = -hb_position->x_offset;
@@ -400,11 +399,10 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED,
else /* horizontal */
for (i = 0; i < num_glyphs; i++)
{
- /* XXX
+ unsigned int advance = hb_position->x_advance;
if (is_hinted)
advance = PANGO_UNITS_ROUND (advance);
- */
- glyphs->glyphs[i].geometry.width = hb_position->x_advance;
+ glyphs->glyphs[i].geometry.width = advance;
glyphs->glyphs[i].geometry.x_offset = hb_position->x_offset;
glyphs->glyphs[i].geometry.y_offset = hb_position->y_offset;
hb_position++;