Swash final forms

Hello Forum – is this the right way to code a final form that is activated only when ‘swash’ is activated?

Have you seen this: Features, part 4: positional alternates | Glyphs

Hi Georg – yes (though I confess as someone who has never coded, I don’t get all of it), but in this instance as this is both a swash and a final form, when you activate the ‘swash’ feature the swash is subbed, even when it’s not a final form:

Should it be r.fina.swash rather than r.swash.fina?
I want them to activate when the swash feature is activated, but only if they are final forms, not in the middle of a word.

read the “Writing the feature code” section carefully. (hint: the key is the ignore sub).