merger

Merge OpenType Layout tables (GDEF / GPOS / GSUB).

class fontTools.varLib.merger.AligningMerger(font=None)[source]
mergeLists(out, lst)
mergeObjects(out, lst, exclude=())
mergeTables(font, master_ttfs, tableTags)
mergeThings(out, lst)
classmethod merger(clazzes, attrs=(None))
mergers = {<class 'fontTools.ttLib.tables.otTables.GDEF'>: {'GlyphClassDef': <function merge>}, <class 'fontTools.ttLib.tables.otTables.SinglePos'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.PairSet'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.PairPos'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.MarkBasePos'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.MarkMarkPos'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.Lookup'>: {None: <function merge>}}
classmethod mergersFor(thing, _default={})
class fontTools.varLib.merger.InstancerMerger(font, model, location)[source]

A merger that takes multiple master fonts, and instantiates an instance.

mergeLists(out, lst)
mergeObjects(out, lst, exclude=())
mergeTables(font, master_ttfs, tableTags)
mergeThings(out, lst)
classmethod merger(clazzes, attrs=(None))
mergers = {<class 'fontTools.ttLib.tables.otTables.CaretValue'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.Anchor'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otBase.ValueRecord'>: {None: <function merge>}}
classmethod mergersFor(thing, _default={})
class fontTools.varLib.merger.Merger(font=None)[source]
mergeLists(out, lst)[source]
mergeObjects(out, lst, exclude=())[source]
mergeTables(font, master_ttfs, tableTags)[source]
mergeThings(out, lst)[source]
classmethod merger(clazzes, attrs=(None))[source]
classmethod mergersFor(thing, _default={})[source]
class fontTools.varLib.merger.MutatorMerger(font, instancer, deleteVariations=True)[source]

A merger that takes a variable font, and instantiates an instance. While there’s no “merging” to be done per se, the operation can benefit from many operations that the aligning merger does.

mergeLists(out, lst)
mergeObjects(out, lst, exclude=())
mergeTables(font, master_ttfs, tableTags)
mergeThings(out, lst)
classmethod merger(clazzes, attrs=(None))
mergers = {<class 'fontTools.ttLib.tables.otTables.CaretValue'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.Anchor'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otBase.ValueRecord'>: {None: <function merge>}}
classmethod mergersFor(thing, _default={})
class fontTools.varLib.merger.VariationMerger(model, axisTags, font)[source]

A merger that takes multiple master fonts, and builds a variable font.

mergeLists(out, lst)
mergeObjects(out, lst, exclude=())
mergeTables(font, master_ttfs, tableTags)
mergeThings(out, lst)[source]
classmethod merger(clazzes, attrs=(None))
mergers = {<class 'fontTools.ttLib.tables.otTables.BaseCoord'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.CaretValue'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otTables.Anchor'>: {None: <function merge>}, <class 'fontTools.ttLib.tables.otBase.ValueRecord'>: {None: <function merge>}}
classmethod mergersFor(thing, _default={})
setModel(model)[source]
fontTools.varLib.merger.buildVarDevTable(store_builder, master_values)[source]