shithub: freetype+ttf2subf

Download patch

ref: 040edaf5fb6eea9d6b784a187e9880a8e6348fff
parent: aae8808780d4b73cf51f80ba40c4b7b854ca1487
author: Werner Lemberg <[email protected]>
date: Wed Nov 4 02:35:51 EST 2015

[truetype] Better tracing of composite glyphs.

* src/truetype/ttgload.c (TT_Load_Composite_Glyph,
load_truetype_glyph): Implement it.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-11-04  Werner Lemberg  <[email protected]>
+
+	[truetype] Better tracing of composite glyphs.
+
+	* src/truetype/ttgload.c (TT_Load_Composite_Glyph,
+	load_truetype_glyph): Implement it.
+
 2015-11-03  Werner Lemberg  <[email protected]>
 
 	[sfnt] Protect against zero-size bitmaps (#46345).
--- 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
 
@@ -1394,6 +1395,11 @@
     FT_Bool         glyph_data_loaded = 0;
 #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        */