summaryrefslogtreecommitdiff
path: root/modules/basic/basic-fc.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/basic/basic-fc.c')
-rw-r--r--modules/basic/basic-fc.c8
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++;