summaryrefslogtreecommitdiff
path: root/src/truetype/ttgload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/truetype/ttgload.c')
-rw-r--r--src/truetype/ttgload.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 68a9c7402..9d44790a3 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -63,15 +63,6 @@
#define UNSCALED_COMPONENT_OFFSET 0x1000
-/* Maximum recursion depth we allow for composite glyphs.
- * The TrueType spec doesn't say anything about recursion,
- * so it isn't clear that recursion is allowed at all. But
- * we'll be generous.
- */
-#define TT_MAX_COMPOSITE_RECURSE 5
-
-
-
/*************************************************************************/
/* */
/* <Function> */
@@ -1221,7 +1212,7 @@
#endif
- if ( recurse_count >= TT_MAX_COMPOSITE_RECURSE )
+ if ( recurse_count >= face->max_profile.maxComponentDepth )
{
error = TT_Err_Invalid_Composite;
goto Exit;