diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2010-10-12 17:36:41 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-10-12 17:36:41 -0400 |
commit | e93eb62efa98f2db0c6183a526aa668e368b0f47 (patch) | |
tree | 68859cf6e1d0f12061051b66baf498e4d227e37e /modules/basic | |
parent | 8804f2a8601ed3dd11dc3dd1dc3d0379dbac3021 (diff) | |
download | pango-e93eb62efa98f2db0c6183a526aa668e368b0f47.tar.gz |
Fix y_offset negation
Diffstat (limited to 'modules/basic')
-rw-r--r-- | modules/basic/basic-fc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c index cd5cebea..5ac7c772 100644 --- a/modules/basic/basic-fc.c +++ b/modules/basic/basic-fc.c @@ -167,8 +167,8 @@ pango_fc_hb_font_get_glyph_metrics (hb_font_t *font, hb_face_t *face, const void metrics->x_advance = logical.width; metrics->y_advance = 0; - metrics->x_offset = ink.x; - metrics->y_offset = ink.y; + metrics->x_offset = ink.x; + metrics->y_offset = -ink.y; metrics->width = ink.width; metrics->height = ink.height; } @@ -279,8 +279,8 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED, last_cluster = glyphs->log_clusters[i]; glyphs->glyphs[i].geometry.width = hb_position->x_advance; - glyphs->glyphs[i].geometry.x_offset = hb_position->x_offset; - glyphs->glyphs[i].geometry.y_offset = hb_position->y_offset; + glyphs->glyphs[i].geometry.x_offset = hb_position->x_offset; + glyphs->glyphs[i].geometry.y_offset = -hb_position->y_offset; hb_glyph++; hb_position++; |