[ot-font] Minor division rounding

This commit is contained in:
Behdad Esfahbod 2023-02-11 09:31:07 -07:00
parent c6c1c6ddf1
commit ab191d9dc7
1 changed files with 2 additions and 2 deletions

View File

@ -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,