[ft] Fix test

This commit is contained in:
Behdad Esfahbod 2022-07-15 14:19:17 -06:00
parent e294200dac
commit 87d338eb61
1 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,7 @@ static void _hb_ft_hb_font_changed (hb_font_t *font, FT_Face ft_face)
#endif
) && ft_face->num_fixed_sizes)
{
#ifdef HAVE_FT_GET_TRANSFORM
/* Bitmap font, eg. bitmap color emoji. */
/* TODO Pick largest size? */
int x_scale = ft_face->available_sizes[0].x_ppem;
@ -155,6 +156,7 @@ static void _hb_ft_hb_font_changed (hb_font_t *font, FT_Face ft_face)
0, 0);
x_mult = (float) font->x_scale / x_scale;
y_mult = (float) font->y_scale / y_scale;
#endif
}
else
{ /* Shrug */ }