summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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