summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-12 23:43:49 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-12 23:43:49 -0400
commit2ce058cdadb320f97b424f5db6b34d0565951578 (patch)
tree16432ee6b108fe02a40c05663cfd3e2b618ed132 /pango/pangofc-font.c
parent8b82959e0ea68e4b8421cd2ee99cb8c725f31fc0 (diff)
downloadpango-2ce058cdadb320f97b424f5db6b34d0565951578.tar.gz
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
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r--pango/pangofc-font.c2
1 files changed, 1 insertions, 1 deletions
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)