From d53cbeee41c9cd839dfcc3e2b71c644fbc31ae89 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 31 Mar 2025 14:24:47 -0600 Subject: [PATCH] [font] Fix warnings --- src/hb-font.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-font.hh b/src/hb-font.hh index 45b75b899..0421eafd0 100644 --- a/src/hb-font.hh +++ b/src/hb-font.hh @@ -198,10 +198,10 @@ struct hb_font_t float x2 = em_scale_x (extents->x_bearing + extents->width); float y2 = em_scale_y (extents->y_bearing + extents->height); - extents->x_bearing = round (x1); - extents->y_bearing = round (y1); - extents->width = round (x2) - extents->x_bearing; - extents->height = round (y2) - extents->y_bearing; + extents->x_bearing = roundf (x1); + extents->y_bearing = roundf (y1); + extents->width = roundf (x2) - extents->x_bearing; + extents->height = roundf (y2) - extents->y_bearing; } void synthetic_glyph_extents (hb_glyph_extents_t *extents)