From 897c102703e482f8ed0842e63c6fb96f15dface3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 22 Dec 2022 08:14:13 -0700 Subject: [PATCH] [font] Fix scale_glyph_extents --- src/hb-font.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-font.hh b/src/hb-font.hh index 08f9c5c4f..a8b3ee5c4 100644 --- a/src/hb-font.hh +++ b/src/hb-font.hh @@ -182,9 +182,9 @@ struct hb_font_t void scale_glyph_extents (hb_glyph_extents_t *extents) { extents->x_bearing = em_scale_x (extents->x_bearing); - extents->y_bearing = em_scale_x (extents->y_bearing); + extents->y_bearing = em_scale_y (extents->y_bearing); extents->width = em_scale_x (extents->width); - extents->height = em_scale_x (extents->height); + extents->height = em_scale_y (extents->height); /* Apply slant. */ extents->x_bearing += roundf (extents->y_bearing * slant_xy);