[font] Fix warnings

This commit is contained in:
Behdad Esfahbod 2025-03-31 14:24:47 -06:00
parent 7c368dabae
commit d53cbeee41

View file

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