I have a script to print which glyphs have Auto kerning, but now it doesn’t work in Glyphs 2, this is a simplified snippet:
Selecting a glyph with Auto metrics in the LSB/RSB in Glyphs 1 returns:
whereas in Glyphs 2:
What's happened? And how do I make this work again such that it will report whether or not a glyph has automatically set metrics.
There is thisGlyph.leftMetricsKey and thisLayer.leftMetricsKey() and the setter method thisLayer.setLeftMetricsKey_(“n”).
The difference between glyph-level keys and layer-level keys is stricter (and clearer) in G2. If you set a layer key, you create an exception for that layer, and it will be indicated with a double equal sign. E.g.: