Stylistics set and keyboard

The question is whether the following functions can be performed on the stylistics set of glyphs.

One default b, obviously, is called b. The alternate variation should be named B.ss01.
Is it possible, for example, to press B on the keyboard twice to output b.ss01.

The alternate to b cannot be B.ss01 because b and B are different characters.

Two b’s yielding one glyph, that would be a ligature, not a stylistic set.

What do you need this for. Can you show me what you are trying to do and why pressing the b twice should yield a different character?

1 Like

I mean press b twice and appears b.ss01.

I would like to create something like the website below. How is this possible?

This font uses what we call contextual alternates.
Basically, when you press two "b"s, they are substituted by b.ss01. However, if you select your text and copy/paste it into another environment, you will see all the glyphs typed.

1 Like

What is the difference between contextual substitution and contextual alternates?

Also, where and how do I write the code for the command to press b twice to display b.ss01?

That means the same thing.

Check the tutorial linked above.

There are not a Contextual Alternates, but Ligatures.

Type one character → low height glyph displayed.
Type two the same characters in a row → medium height ligature displayed.
Type three the same characters in a row → high height ligature displayed.

I meant this: Features, part 3: advanced contextual alternates | Glyphs