From 2ce058cdadb320f97b424f5db6b34d0565951578 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 12 Aug 2019 23:43:49 -0400 Subject: fc: Make sure ink rectangle has positive height We are getting extents with negative height from harfbuzz, we have to flip them around. This was causing problems in lilypond. Closes: https://gitlab.gnome.org/GNOME/pango/issues/406 --- pango/pangofc-font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c index 21644b57..72b9931d 100644 --- a/pango/pangofc-font.c +++ b/pango/pangofc-font.c @@ -810,7 +810,7 @@ pango_fc_font_get_raw_extents (PangoFcFont *fcfont, ink_rect->x = extents.x_bearing; ink_rect->width = extents.width; ink_rect->y = -extents.y_bearing; - ink_rect->height = extents.height; + ink_rect->height = -extents.height; } if (logical_rect) -- cgit v1.2.1