diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-08-12 00:18:49 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-08-12 00:20:49 -0400 |
commit | 3e8a4e141810bc024c4e65bf03be7312da7601a0 (patch) | |
tree | 5941c59296ff889e8eb8f68ef048061854039ca5 /pango/pangofc-shape.c | |
parent | 88c1e6263423472c8b11b7f55d710404740b0db7 (diff) | |
download | pango-3e8a4e141810bc024c4e65bf03be7312da7601a0.tar.gz |
Flip vertical offsets
This was experimentally determined to fix placement
of diacritics in Arabic text. I am not entirely sure
where the negation crept in, compared to 1.43, which
makes me a little uncomfortable.
Fixes https://gitlab.gnome.org/GNOME/pango/issues/408
Diffstat (limited to 'pango/pangofc-shape.c')
-rw-r--r-- | pango/pangofc-shape.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c index 1e904730..ef84aa2a 100644 --- a/pango/pangofc-shape.c +++ b/pango/pangofc-shape.c @@ -409,17 +409,17 @@ pango_hb_shape (PangoFont *font, for (i = 0; i < num_glyphs; i++) { /* 90 degrees rotation counter-clockwise. */ - infos[i].geometry.width = hb_position->y_advance; - infos[i].geometry.x_offset = hb_position->y_offset; - infos[i].geometry.y_offset = -hb_position->x_offset; + infos[i].geometry.width = hb_position->y_advance; + infos[i].geometry.x_offset = hb_position->y_offset; + infos[i].geometry.y_offset = - hb_position->x_offset; hb_position++; } else /* horizontal */ for (i = 0; i < num_glyphs; i++) { - infos[i].geometry.width = hb_position->x_advance; - infos[i].geometry.x_offset = hb_position->x_offset; - infos[i].geometry.y_offset = hb_position->y_offset; + infos[i].geometry.width = hb_position->x_advance; + infos[i].geometry.x_offset = hb_position->x_offset; + infos[i].geometry.y_offset = - hb_position->y_offset; hb_position++; } |