ttVisitor: Specialization of the visitor module to work with TTFont

Overview

The ttLib.ttVisitor module is a helper for ttLib.ttFont.

It supports the use of the fontTools.misc.visitor module by extending Visitor to handle common TTFont edge-cases. Primarily, the extra handling is to avoid traversing cyclical back-references to the root font object.

Package contents

Specialization of fontTools.misc.visitor to work with TTFont.

class fontTools.ttLib.ttVisitor.TTVisitor[source]

Bases: Visitor

visitAttr(obj, attr, value, *args, **kwargs)[source]
visit(obj, *args, **kwargs)[source]