[pango/glyph-extents: 1/2] fc: Make sure ink rectangle has positive height
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/glyph-extents: 1/2] fc: Make sure ink rectangle has positive height
- Date: Tue, 13 Aug 2019 03:45:53 +0000 (UTC)
commit 2ce058cdadb320f97b424f5db6b34d0565951578
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 12 23:43:49 2019 -0400
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]