[font] Fix scale_glyph_extents

This commit is contained in:
Behdad Esfahbod 2022-12-22 08:14:13 -07:00
parent 9194e13e25
commit 897c102703
1 changed files with 2 additions and 2 deletions

View File

@ -182,9 +182,9 @@ struct hb_font_t
void scale_glyph_extents (hb_glyph_extents_t *extents) void scale_glyph_extents (hb_glyph_extents_t *extents)
{ {
extents->x_bearing = em_scale_x (extents->x_bearing); extents->x_bearing = em_scale_x (extents->x_bearing);
extents->y_bearing = em_scale_x (extents->y_bearing); extents->y_bearing = em_scale_y (extents->y_bearing);
extents->width = em_scale_x (extents->width); extents->width = em_scale_x (extents->width);
extents->height = em_scale_x (extents->height); extents->height = em_scale_y (extents->height);
/* Apply slant. */ /* Apply slant. */
extents->x_bearing += roundf (extents->y_bearing * slant_xy); extents->x_bearing += roundf (extents->y_bearing * slant_xy);