-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tx] Subroutinized CFF2 font exceeds allowed stack depth #846
Comments
Confirmed that the subroutine depth limit is exceeded. |
The output from
but the output from from fontTools.ttLib import TTFont
from fontbakery.profiles.cff import (
com_adobe_fonts_check_cff2_call_depth as check)
test_font = TTFont('SHSansJPVFTest_SUBR.otf')
status, message = list(check(test_font))[-1]
print(status, message) is |
@readroberts I believe I fixed the I'll look into the subroutine depth issue. |
@readroberts & @miguelsousa Based on my initial analysis, I think the max call depth is that font is 2, not 11+. I'll dig into the Here are the subroutines in font dict 1:
...here is the subroutine in font dict 2:
...and here is the global subroutine:
|
@readroberts & @miguelsousa Sorry, I forgot to reduce the depth count after a subr call when I implemented #812 |
Applying 'tx -cff2 +S +b' to fdko/tests/tx_data/input/SHSansJPVFTest.otf produces a CFF2 file whose subroutine depth exceeds the limit. I discovered this when trying to apply 'tx -dcf' to the output font. Fortunately, you can dump the output font with ttx.
It also generates error messages:
'inconsistent region indices detected in item variation store subtable 1'.
The text was updated successfully, but these errors were encountered: