TT
Constants
Composite glyph flags (ttgload.c).
Code range tags.
FT_CURVE_TAG_* (ftimage.h).
FT error codes as produced by FT_THROW with FT_Mod_Err_TrueType = 0x1200.
FT_GASP flags used by tt_face_get_cleartype_policy.
TupleCount flags of the `gvar' table (GX_TupleCountFlags).
TupleIndex flags of the gvar'/cvar' tables (GX_TupleIndexFlags).
Interpreter versions (FT_TT_INTERPRETER_VERSION_xx).
Simple glyph flag bits (ttgload.c).
opcode_length[256], verbatim from ttinterp.c (-1 for NPUSHB, -2 for NPUSHW).
Opcode frequency counter for profiling (prints on context GC... run end is impractical here; read via ExecContext.opcode_counts). TT_OPCOUNT=1.
Pop_Push_Count[256]: (pops << 4) | pushes, verbatim from ttinterp.c.
FT_Render_Mode constants (only the equality tests matter).
Selector values of the current rounding/projection/move function
pointers (the C func_round, func_project, ... fields).
Rounding state constants (ttinterp.h).
Per-instruction trace to STDERR, mirroring the C interpreter's FT_DEBUG_LEVEL_TRACE dump (opcode + top-of-stack). Enable with TT_TRACE=1.
Dedicated interceptable name for "the font's TrueType bytecode crashed
the VM": the same class as ExecutionError, so existing rescues keep
working — rescue ex : TT::VMError reads as intent.
Flag bit marking a table as transformed (sfwoff2.h).
WOFF2 known table tags, in the order given by the spec's table directory format (woff2tags.c). The flag byte's low 6 bits index it.
An arbitrary, heuristic size limit (67MByte) for expanded WOFF2 data.
`OVERLAP_SIMPLE' simple-glyph flag (glyf spec bit 6).
Class methods
A bare TrueType/OpenType collection ('ttcf' magic): return the byte offset of face `face_index''s SFNT inside the buffer, or nil for anything that is not a collection. Table offsets inside a member face are relative to the START OF THE FILE (shared table data), so callers must keep the whole buffer and add this base — slicing would corrupt every table offset.
Unwrap a WOFF1 wrapper into a plain SFNT buffer (the port of
FreeType's woff_open_font', sfnt/wofffnt.c): each table is either stored raw (compLength == origLength) or zlib-compressed; the result is a reconstructed SFNT with the original flavor, a fresh table directory and the tables re-padded to 4-byte alignment. WOFF2 ('wOF2' magic) is unwrapped through the brotli decoder (see tt/woff2.cr). Bare collections ('ttcf') are returned as-is — they are handled through ttcf_face_offset'/`Font#@base' instead (slicing would
corrupt their file-relative table offsets). Any other input is
returned as-is.
Unwrap a WOFF2 font into a plain SFNT buffer. face_index' selects a face when the WOFF2 wraps a collection ('ttcf' flavor). Port of woff2_open_font' (sfwoff2.c).
Nested types
- TT::AVarCorrespondence
- TT::AVarSegment
- TT::CallRec
- TT::Cmap12
- TT::Cmap4
- TT::Component
- TT::CompositeGlyph
- TT::DefRecord
- TT::DeltaSetIndexMap
- TT::ExecContext
- TT::ExecutionError
- TT::Fixed
- TT::Font
- TT::GVar
- TT::GXBlend
- TT::GraphicsState
- TT::HVVarTable
- TT::HintedFace
- TT::ItemVarData
- TT::ItemVarStore
- TT::Kern0
- TT::LoadedGlyph
- TT::Matrix
- TT::MvarTable
- TT::MvarValue
- TT::NamedStyle
- TT::ParseError
- TT::RegionAxis
- TT::SimpleGlyph
- TT::SizeGs
- TT::VarAxis
- TT::Zone