Is there an easy way to ask Glyphs for the width of each line of the edit view? Or do I have to add the glyph widths (and kerning) up myself?
I have to compare different versions of glyphs and would like to show the relative difference in line lengths, as shown here by the red number:
The GlyphsEditView has cachedPositionAtIndex:. You still need to iterate all layers and add up per line, but you don’t need to deal with all the different positioning rules. There should be one more position than layers for the pos at the end.
cachedPositionAtIndex: