[ft] Fix scale when font-sizes are negative
This commit is contained in:
parent
d68507d062
commit
3ac110560d
|
@ -146,8 +146,8 @@ static void _hb_ft_hb_font_changed (hb_font_t *font, FT_Face ft_face)
|
||||||
#endif
|
#endif
|
||||||
if (font->x_scale < 0 || font->y_scale < 0)
|
if (font->x_scale < 0 || font->y_scale < 0)
|
||||||
{
|
{
|
||||||
FT_Matrix matrix = { font->x_scale < 0 ? -1 : +1, 0,
|
FT_Matrix matrix = { font->x_scale < 0 ? -(1<<16) : +(1<<16), 0,
|
||||||
0, font->y_scale < 0 ? -1 : +1};
|
0, font->y_scale < 0 ? -(1<<16) : +(1<<16)};
|
||||||
FT_Set_Transform (ft_face, &matrix, nullptr);
|
FT_Set_Transform (ft_face, &matrix, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue