Cycle through contextual alts (def, alt1, alt2, repeat)?

Hi everyone, I’m just wrapping up a hand drawn style font using the Glyphs guide (on contextual alternates) and the coding works great!

Well… for the most part. It doesn’t work so well for punctuation.

The problem is the default method of ‘randomising’ alts always defaults back to the default character, which is particularly obvious in punctuation (because, of course, punctuation is rarely used more than once a word).

Is there a way to cycle through characters regardless of where they are in a body of text? Or even just to have the punctuation go through each stylistic set once and then repeat?

Thanks in advance,
Joe

Wait, I think I might have answered my own question

I just put all the punctuation in the ‘etc.’ class. Because space is also in there it seems to work.

It doesn’t solve the fact that all this resets with a paragraph/line break, but I suspect there isn’t a workaround for that

Depends on the Layout Engine the app is using (the app in which the font is used). The font has no control over this.

Ah ha! I wasn’t aware of that. In which case I guess I’ve solved my own question?

Yes. :raising_hands: