Styles for Ligatures

Hi
I am trying to use stylistic set for ligatures to have the glyphs be on top of eachother.
The ligatures have a width of 600.
So what I want is:

Ligatur + Ligatur = Ligatur2 (which has kerning -600)

LIGATURES

LIGATURES WITH STYLISTIC SET KERNING LEFT -600

AND THEN HERE MY FEATURES
CLASSES:


STYLISTIC SET:

Even when I try it in glyphs itself it does not change the 2nd ligature into the ss02 (Stylistic set)

  1. The order of features is important. The calt (or whichever feature is carrying the sub rule) must come after liga (or whatever ligature feature you are using).
  2. Don’t forget to compile your features before testing them.
  3. And how are you testing it? In Glyphs? Then you must activate the features in the lower left corner? Outside of Glyphs: Are you using the Adobe Fonts folder?

The order was the problem :slight_smile:
Thank you lots!

@mekkablue
following up question:
It worked out to move the second ligatur to the left but now I am battling with the 3rd
so
Ligatur +Ligatur +Ligatur’
which should also be on -79

You will have to dig a little deeper into AFDKO code. You may want to separate phases of the substitutions into separate lookups. Read the tutorials, and perhaps also read Tal Leming’s OT Cookbook. Check what gets substituted for what (test it in Edit view), so you know what to substitute in the next line of code.