The fontTools.otlLib
library provides routines to help you create the subtables and other data structures you need when you are editing a font's GSUB
and GPOS
tables: substitution and positioning rules, anchors, lookups, coverage tables and so on.
fontTools.otlLib.builder
AlternateSubstBuilder
ChainContextPosBuilder
ChainContextSubstBuilder
LigatureSubstBuilder
MultipleSubstBuilder
CursivePosBuilder
MarkBasePosBuilder
MarkLigPosBuilder
MarkMarkPosBuilder
ReverseChainSingleSubstBuilder
SingleSubstBuilder
ClassPairPosSubtableBuilder
PairPosBuilder
SinglePosBuilder
fontTools.otlLib.builder
buildCoverage
buildLookup
These functions deal with the "simple" lookup types. See above for classes to help build more complex lookups (contextual and chaining lookups).
fontTools.otlLib.builder
buildSingleSubstSubtable
buildMultipleSubstSubtable
buildAlternateSubstSubtable
buildLigatureSubstSubtable
The functions help build the GPOS shared tables as defined in the OpenType spec: value records, anchors, mark arrays and mark record tables.
fontTools.otlLib.builder
buildValue
buildAnchor
buildMarkArray
buildDevice
buildBaseArray
buildComponentRecord
These functions deal with the "simple" lookup types. See above for classes to help build more complex lookups (contextual and chaining lookups).
fontTools.otlLib.builder
buildCursivePosSubtable
buildLigatureArray
buildMarkBasePos
buildMarkBasePosSubtable
buildMarkLigPos
buildMarkLigPosSubtable
buildPairPosClassesSubtable
buildPairPosGlyphs
buildPairPosGlyphsSubtable
buildSinglePos
buildSinglePosSubtable
These functions build subtables for elements of the GDEF
table.
fontTools.otlLib.builder
buildAttachList
buildLigCaretList
buildMarkGlyphSetsDef
fontTools.otlLib.builder
buildStatTable