ttProgram: TrueType bytecode assembler/disassembler

Overview:

The fontTools.ttLib.ttProgram module is a helper for fontTools.ttLib.

ttLib.tables.ttProgram.py – Assembler/disassembler for TrueType bytecode programs.

Module members:

fontTools.ttLib.tables.ttProgram.bitRepr(value: int, bits: int) str[source]
exception fontTools.ttLib.tables.ttProgram.tt_instructions_error(error: str)[source]

Bases: Exception

class fontTools.ttLib.tables.ttProgram.Program[source]

Bases: object

fromBytecode(bytecode: bytes) None[source]
fromAssembly(assembly: list[str] | str) None[source]
getBytecode() bytes[source]
getAssembly(preserve=True) List[str][source]
toXML(writer, ttFont) None[source]
fromXML(name, attrs, content, ttFont) None[source]