-
Notifications
You must be signed in to change notification settings - Fork 447
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
old ttProgram.py used to check and fix PUSHs mnemonics #248
Comments
What's your exact usecase? |
In RoboFont with the old fontTools I had a case where I did push 11 elements to the stack with a simple PUSHW[ ] and it did not raise any errors (I assume it was corrected to NPUSHW[ ]). Now with the latest fontTools, I got AssertionError: 11 Traceback (most recent call last): But in fact this was more a problem with my code so I fixed it with a function that gives me the right PUSH for each case:
|
Ah, somehow I never saw your last comment :(. Anyway, there's more discussion on this here: |
The old version of fontTools used to check and fix PUSHs mnemonics so that it did not matter what kind of PUSHW, PUSHB, NPUSHW, or NPUSHB was called.
This current version of fontTools implies a generic 'PUSH' instruction must be used to have the automatic selection of Word-or-Byte One-or-Many while the original fontTools was making that automatic selection anyway.
For backward compatibility reasons I suggest to add the automatic correction of the PUSH instructions
The text was updated successfully, but these errors were encountered: