[pango/gravity-fixes: 1/2] Fix misplaced glyphs in gravity east
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/gravity-fixes: 1/2] Fix misplaced glyphs in gravity east
- Date: Sun, 28 Nov 2021 04:39:36 +0000 (UTC)
commit db4fde572907d837dd994df6c46b77a95b0079e9
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 27 23:28:27 2021 -0500
Fix misplaced glyphs in gravity east
This was showing up as glyphs placed outside
their logical extents.
pango/shape.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]