From 040edaf5fb6eea9d6b784a187e9880a8e6348fff Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 4 Nov 2015 07:35:51 +0100 Subject: [PATCH] [truetype] Better tracing of composite glyphs. * src/truetype/ttgload.c (TT_Load_Composite_Glyph, load_truetype_glyph): Implement it. --- ChangeLog | 7 +++++++ src/truetype/ttgload.c | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index fb612da98..8c39fbfa4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-11-04 Werner Lemberg + + [truetype] Better tracing of composite glyphs. + + * src/truetype/ttgload.c (TT_Load_Composite_Glyph, + load_truetype_glyph): Implement it. + 2015-11-03 Werner Lemberg [sfnt] Protect against zero-size bitmaps (#46345). diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index a792ad44a..93647de93 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -659,6 +659,7 @@ } while ( subglyph->flags & MORE_COMPONENTS ); gloader->current.num_subglyphs = num_subglyphs; + FT_TRACE5(( " %d components\n", num_subglyphs )); #ifdef TT_USE_BYTECODE_INTERPRETER @@ -1395,6 +1396,11 @@ #endif +#ifdef FT_DEBUG_LEVEL_TRACE + if ( recurse_count ) + FT_TRACE5(( " nesting level: %d\n", recurse_count )); +#endif + /* some fonts have an incorrect value of `maxComponentDepth', */ /* thus we allow depth 1 to catch the majority of them */ if ( recurse_count > 1 &&