From f02bffad0fd57f3acfa835c3f2899c5b71ff8be0 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 14 Oct 2024 11:47:31 +0000 Subject: [PATCH] * src/truetype/ttgload.c (load_truetype_glyph): Rearrange. --- src/truetype/ttgload.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index b656ccf04..732cedacd 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -1566,13 +1566,14 @@ if ( header_only ) goto Exit; +#ifdef FT_CONFIG_OPTION_INCREMENTAL + tt_get_metrics_incremental( loader, glyph_index ); +#endif + tt_loader_set_pp( loader ); + + /* shortcut for empty glyphs */ if ( loader->byte_len == 0 || loader->n_contours == 0 ) { -#ifdef FT_CONFIG_OPTION_INCREMENTAL - tt_get_metrics_incremental( loader, glyph_index ); -#endif - tt_loader_set_pp( loader ); - #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT @@ -1627,11 +1628,6 @@ goto Exit; } -#ifdef FT_CONFIG_OPTION_INCREMENTAL - tt_get_metrics_incremental( loader, glyph_index ); -#endif - tt_loader_set_pp( loader ); - /***********************************************************************/ /***********************************************************************/