From bcc9ab27fcf02d57333a9bfc06261eede85c0746 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 18 Dec 2022 11:59:54 -0700 Subject: [PATCH] [hb-view] Fix transformation No need for cairo patch; that patch was wrong. --- util/helper-cairo-user.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/helper-cairo-user.hh b/util/helper-cairo-user.hh index 8d7510850..a48a472ef 100644 --- a/util/helper-cairo-user.hh +++ b/util/helper-cairo-user.hh @@ -365,7 +365,7 @@ render_color_glyph (cairo_scaled_font_t *scaled_font, extents->x_bearing = (double) hb_extents.x_bearing / x_scale; extents->y_bearing = (double)-hb_extents.y_bearing / y_scale; extents->width = (double) hb_extents.width / x_scale; - extents->height = (double) hb_extents.height / y_scale; + extents->height = (double)-hb_extents.height / y_scale; hb_font_destroy (paint_data.unscaled_font);