summaryrefslogtreecommitdiff
path: root/pango/shape.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-28 12:57:17 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-11-28 12:57:17 +0000
commit3fdbd3fe01842e683a26a1e1c9c9eb04099f27f1 (patch)
tree98a297eaad6bc3b6c2d59e531639650d470887cf /pango/shape.c
parent24ca0e22b8038eba7c558eb19f593dfc4892aa55 (diff)
parentd5c3348ac714d884cb6be8d04f0e1b96f04d59c9 (diff)
downloadpango-3fdbd3fe01842e683a26a1e1c9c9eb04099f27f1.tar.gz
Merge branch 'gravity-fixes' into 'main'
Fix misplaced glyphs in gravity east Closes #631 See merge request GNOME/pango!524
Diffstat (limited to 'pango/shape.c')
-rw-r--r--pango/shape.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/shape.c b/pango/shape.c
index afb1e1a3..caefeae4 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -169,7 +169,10 @@ pango_hb_font_get_glyph_v_advance (hb_font_t *font,
pango_font_get_glyph_extents (context->font, glyph, NULL, &logical);
- return logical.height;
+ if (hb_font_get_glyph_v_advance (context->parent, glyph) < 0)
+ return - logical.height;
+ else
+ return logical.height;
}
static hb_bool_t