I was hoping to extract VTT assembly from binary TTFs, and to be able to compile it again with vttLib.
The extraction part is done with stream.py. It works in principle, but there are a few caveats.
The extracted VTT assembly is wrapped in #PUSHOFF ... #PUSHON, so I assumed it would be able to compile again without any optimizations. But it is not the case
- for
fpgm. Somehow the FDEF[] must be in PUSHON mode, but the contents of each function must apparently be in PUSHOFF mode.
- for deltas. I don't claim to fully understand the transformations vttLib does. But why is it not possible to output
DELTAP[123] instructions and just letting them take their arguments from the stack?
Is there any easy way around this?
I was hoping to extract VTT assembly from binary TTFs, and to be able to compile it again with vttLib.
The extraction part is done with stream.py. It works in principle, but there are a few caveats.
The extracted VTT assembly is wrapped in
#PUSHOFF ... #PUSHON, so I assumed it would be able to compile again without any optimizations. But it is not the casefpgm. Somehow theFDEF[]must be in PUSHON mode, but the contents of each function must apparently be in PUSHOFF mode.DELTAP[123]instructions and just letting them take their arguments from the stack?Is there any easy way around this?