test-paint: Fix font setup for ft

We must call hb_ft_font_set_funcs after
setting the font scale.
This commit is contained in:
Matthias Clasen 2023-01-09 13:11:16 -05:00
parent 26f713a7f5
commit a085efa699
1 changed files with 3 additions and 3 deletions

View File

@ -319,14 +319,14 @@ test_hb_paint (gconstpointer d,
face = hb_test_open_font_file (test->font_file);
font = hb_font_create (face);
hb_font_set_scale (font, test->scale, test->scale);
hb_font_set_synthetic_slant (font, test->slant);
#ifdef HB_HAS_FREETYPE
if (use_ft)
hb_ft_font_set_funcs (font);
#endif
hb_font_set_scale (font, test->scale, test->scale);
hb_font_set_synthetic_slant (font, test->slant);
funcs = hb_paint_funcs_create ();
hb_paint_funcs_set_push_transform_func (funcs, push_transform, &data, NULL);
hb_paint_funcs_set_pop_transform_func (funcs, pop_transform, &data, NULL);