Is there a method to check if an anchor is used in any glyphs where the anchor’s glyph is used as a component? I would like to find anchors unused
Why?
Not easy, as anchors can be used by different subsystems: automatic feature code generation, feature code tokens, smart filters, metric scopes, plugins, …
Sometimes I work on files where many anchors have been copied and pasted during the design process but are not used in the end.
Educate your designers better
I’d check for all anchors that are not in GlyphData.xml and list them. There’s a script for that, look for ‘non-standard anchors’.
1 Like
My other idea was to check all glyphs using the anchor’s glyph as a component and see if any of them have an anchor with the same name (without the _)
And check ‘component.anchor’. It might have the manually set anchor (with the anchor button in the component info box).
1 Like