From a085efa69922784850ef4ae68e6b43bf933d3d6d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 9 Jan 2023 13:11:16 -0500 Subject: [PATCH] test-paint: Fix font setup for ft We must call hb_ft_font_set_funcs after setting the font scale. --- test/api/test-paint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/api/test-paint.c b/test/api/test-paint.c index a7b3397d7..4bcb8b671 100644 --- a/test/api/test-paint.c +++ b/test/api/test-paint.c @@ -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);