I was wondering if it is possible to name a glyph in a way that it is automatically added to two stylistic sets by the application?
e. g. I have a glyph.ss01 that is automatically being added to stylistic set 1. but this glyphs also should be added to stylistic set 2. i could create glyph.ss02 and place glyph.ss01 as a component but this might save some duplicate glyphs.
No, this is for when there is a glyph in ss03 that should be changed when activating ss04.
Something like
# SS04
sub a.ss03 by a.ss03.ss04;
This means that this glyphs can only be reached by activating both stylistic sets at the same time, and you can have a separate a.ss04 which is activated by ss04 when ss03 is not active.
I’m not aware of a syntax that allows Glyphs to automatically add the same glyph to two different stylistic sets.
Don’t duplicate your glyphs. Just write the feature code manually. You can also add manual feature code on top of the automatically generated feature code.