63 |
#define UNSCALED_COMPONENT_OFFSET 0x1000 |
#define UNSCALED_COMPONENT_OFFSET 0x1000 |
64 |
|
|
65 |
|
|
|
/* 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 |
|
|
|
|
|
|
|
|
|
|
66 |
/*************************************************************************/ |
/*************************************************************************/ |
67 |
/* */ |
/* */ |
68 |
/* <Function> */ |
/* <Function> */ |
1212 |
#endif |
#endif |
1213 |
|
|
1214 |
|
|
1215 |
if ( recurse_count >= TT_MAX_COMPOSITE_RECURSE ) |
if ( recurse_count >= face->max_profile.maxComponentDepth ) |
1216 |
{ |
{ |
1217 |
error = TT_Err_Invalid_Composite; |
error = TT_Err_Invalid_Composite; |
1218 |
goto Exit; |
goto Exit; |