From 3fc2e654c0eca9566b184fd64c682114f99b2093 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 2 Jan 2022 11:56:45 -0700 Subject: [PATCH] [metrics] Fix slant calc --- src/hb-ot-metrics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-metrics.cc b/src/hb-ot-metrics.cc index bf4bacd75..103808cf9 100644 --- a/src/hb-ot-metrics.cc +++ b/src/hb-ot-metrics.cc @@ -196,7 +196,7 @@ hb_ot_metrics_get_position (hb_font_t *font, *position *= mult; if (font->slant) - *position += _hb_roundf (mult * rise * font->slant); + *position += _hb_roundf (mult * font->slant_xy * rise); } return ret;