[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master f02bffad0: * src/truetype/ttgload.c (load_truetype_gl
From: |
Werner Lemberg |
Subject: |
[freetype2] master f02bffad0: * src/truetype/ttgload.c (load_truetype_glyph): Rearrange. |
Date: |
Mon, 14 Oct 2024 07:47:41 -0400 (EDT) |
branch: master
commit f02bffad0fd57f3acfa835c3f2899c5b71ff8be0
Author: Alexei Podtelezhnikov (Алексей Подтележников) <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov (Алексей Подтележников) <apodtele@gmail.com>
* src/truetype/ttgload.c (load_truetype_glyph): Rearrange.
---
src/truetype/ttgload.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 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;
- if ( loader->byte_len == 0 || loader->n_contours == 0 )
- {
#ifdef FT_CONFIG_OPTION_INCREMENTAL
- tt_get_metrics_incremental( loader, glyph_index );
+ tt_get_metrics_incremental( loader, glyph_index );
#endif
- tt_loader_set_pp( loader );
+ tt_loader_set_pp( loader );
+ /* shortcut for empty glyphs */
+ if ( loader->byte_len == 0 || loader->n_contours == 0 )
+ {
#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 );
-
/***********************************************************************/
/***********************************************************************/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master f02bffad0: * src/truetype/ttgload.c (load_truetype_glyph): Rearrange.,
Werner Lemberg <=