From ab191d9dc7eb126759cd6224131db8df4b730b81 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 11 Feb 2023 09:31:07 -0700 Subject: [PATCH] [ot-font] Minor division rounding --- src/hb-ot-font.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index 578405dd9..19ae02e28 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -515,8 +515,8 @@ hb_ot_draw_glyph (hb_font_t *font, if (embolden) { - float x_shift = font->embolden_in_place ? 0 : font->x_strength / 2; - float y_shift = font->y_strength / 2; + float x_shift = font->embolden_in_place ? 0 : (float) font->x_strength / 2; + float y_shift = (float) font->y_strength / 2; if (font->x_scale < 0) x_shift = -x_shift; if (font->y_scale < 0) y_shift = -y_shift; outline.embolden (font->x_strength, font->y_strength,