[ttVisitor] Add comment
This commit is contained in:
parent
adf6a67a7a
commit
33b07c757a
@ -18,8 +18,13 @@ class TTVisitor(Visitor):
|
||||
|
||||
@TTVisitor.register(TTFont)
|
||||
def visit(visitor, font, *args, **kwargs):
|
||||
# Some objects have links back to TTFont; even though we
|
||||
# have a check in visitAttr to stop them from recursing
|
||||
# onto TTFont, sometimes they still do, for example when
|
||||
# someone overrides visitAttr.
|
||||
if hasattr(visitor, "font"):
|
||||
return False
|
||||
|
||||
visitor.font = font
|
||||
for tag in font.keys():
|
||||
visitor.visit(font[tag], *args, **kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user