# 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, bits)

exception fontTools.ttLib.tables.ttProgram.tt_instructions_error(error)

  Bases: `Exception`

class fontTools.ttLib.tables.ttProgram.Program

  Bases: `object`

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