[font] Fix scale_glyph_extents
This commit is contained in:
parent
9194e13e25
commit
897c102703
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue