Ligatures and Stylistic sets

I know there are some entries similar to this topic but I did not find my answer so far.

The problem:
I need a lambda_lambda.ss03 ligature.
It did not work automatically.
I tried manually with .dlig and without. Nothing worked.

Mind that I do not need a lambda_lambda ligature.
But even when I created one, the dlig did not pick up (for the ss03 variant).

Interestingly a similar ligature works flawlessly. (t_tt_t.ss02)

What am I missing?

  1. Order liga after ss03 feature.
  2. Substitute lambda.ss03 instead of lambda in the liga feature.
sub lambda.ss03 lambda.ss03 by lambda_lambda.ss03;
1 Like

Thank you, this worked!

I still don’t understand why this wasn’t necessary for t_tt_t.ss02

Here is another example where stylistic set ss03 is ordered after the liga feature. Maybe this is what you were looking for.

  1. Made liga from original glyphs.
sub lambda lambda by lambda_lambda;
  1. Made ss03 stylistic set that count both original glyphs (the first line) and ligatures (the second line).
sub lambda by lambda.ss03;
sub lambda_lambda by lambda_lambda.ss03;

You need the non-stylistic-set ligature to get the automatic stylistic-set ligature. Then it works for me.

As long as the ss03 feature is ordered after the dlig feature, that’s fine. This is my setup:

Glyphs:

Feature code: