[ft] Fix negative y-scale
This commit is contained in:
parent
aba2063c22
commit
bb45ba2f9f
|
@ -706,6 +706,7 @@ hb_ft_get_font_h_extents (hb_font_t *font HB_UNUSED,
|
||||||
FT_Matrix matrix;
|
FT_Matrix matrix;
|
||||||
FT_Get_Transform (ft_face, &matrix, nullptr);
|
FT_Get_Transform (ft_face, &matrix, nullptr);
|
||||||
y_mult = sqrtf ((float)matrix.yx * matrix.yx + (float)matrix.yy * matrix.yy) / 65536.f;
|
y_mult = sqrtf ((float)matrix.yx * matrix.yx + (float)matrix.yy * matrix.yy) / 65536.f;
|
||||||
|
y_mult *= font->y_scale < 0 ? -1 : +1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue