[pango/mark-offset: 2/2] Flip vertical offsets
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/mark-offset: 2/2] Flip vertical offsets
- Date: Mon, 12 Aug 2019 04:20:26 +0000 (UTC)
commit d7ec9d8360991d7bd70df82d6ecf641cd87f38d2
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 12 00:18:49 2019 -0400
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.
pango/pangofc-shape.c | 12 ++++++------
1 file 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++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]