From bc15ebdea18f46dbbc5ee2973a48e378e573f516 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 15 Apr 2025 12:37:11 -0600 Subject: [PATCH] [font] Fix abs of int value --- 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 e86173804..5e23bd040 100644 --- a/src/hb-font.hh +++ b/src/hb-font.hh @@ -781,8 +781,8 @@ struct hb_font_t bool y_neg = y_scale < 0; y_mult = (y_neg ? -((int64_t) -y_scale << 16) : ((int64_t) y_scale << 16)) / upem; - x_strength = roundf (fabsf (x_scale) * x_embolden); - y_strength = roundf (fabsf (y_scale) * y_embolden); + x_strength = roundf (abs (x_scale) * x_embolden); + y_strength = roundf (abs (y_scale) * y_embolden); slant_xy = y_scale ? slant * x_scale / y_scale : 0.f;