fonttools / ufoLib2

A library to deal with UFO font sources.
Apache License 2.0
25 stars 14 forks source link

Check for circular component references? #76

Open madig opened 4 years ago

madig commented 4 years ago

The specification states:

The base glyph referenced by a component may contain components. The base glyph must not create a circular reference to the glyph that contains the component. Components must only reference glyphs within the same layer that the component belongs to.

http://unifiedfontobject.org/versions/ufo3/glyphs/glif/#component

ufoLib currently does not validate this. Should it? Should ufoLib2?

belluzj commented 4 years ago

Probably ufoLib if that's where most of the validation logic is already?