Stylistic Alternates

Hi everyone. I'm making my first font and it has a ton of ligatures. I have six versions of some ligatures. Now I'm beginning the proces of getting them to work with code, though I've never written code I'm learning it as I go, with this font.

My question is about the difference between stylistic alternates en stylistic sets. What is the difference exactly??
The manual says this about stylistic alternates... or contextual alternates

Alternate Substitution
Alternate substitution replaces a glyph with one of the glyphs in a predefined
list of alternatives. The application that uses the font is expected to
decide which glyph to choose. A good example of this lookup is to provide
several versions of some glyph, like the ampersand. Another application is

I've recently learned how to use Fontlab Studio 5, and I also learned how to script ligatures. But I noticed Illustrator for example has more buttons in the type tool section: Standard Ligatures, Contextual Ligatures, Discretionary Ligatures, Swash, Stylistic Alternates, Titling Alternates, Ordinals and Fractions.

So out of that list, I only know how to script the standard ligatures. Does anyone know how to script the others, or do you know a source to learn about it? Most font families contain all the ligatures and swash letters as seperate fonts rather than putting it into a single font (OpenType). Is there a reason for doing this?

Syndicate content Syndicate content