diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-27 23:28:27 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-27 23:28:27 -0500 |
commit | db4fde572907d837dd994df6c46b77a95b0079e9 (patch) | |
tree | efb11974be3b2d826bf96969e48f964662181c33 /pango | |
parent | 24ca0e22b8038eba7c558eb19f593dfc4892aa55 (diff) | |
download | pango-db4fde572907d837dd994df6c46b77a95b0079e9.tar.gz |
Fix misplaced glyphs in gravity east
This was showing up as glyphs placed outside
their logical extents.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/shape.c | 5 |
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 |