[ft] Fix negative y-scale

This commit is contained in:
Behdad Esfahbod 2022-12-24 10:25:43 -07:00
parent aba2063c22
commit bb45ba2f9f
1 changed files with 1 additions and 0 deletions

View File

@ -706,6 +706,7 @@ hb_ft_get_font_h_extents (hb_font_t *font HB_UNUSED,
FT_Matrix matrix;
FT_Get_Transform (ft_face, &matrix, nullptr);
y_mult = sqrtf ((float)matrix.yx * matrix.yx + (float)matrix.yy * matrix.yy) / 65536.f;
y_mult *= font->y_scale < 0 ? -1 : +1;
}
else
#endif