Is there any way to set dlig or stylistic set as default

Hello,
Is there any way to set dlig or stylistic sets as default ( act as rlig)?
I want certain ligatures to be enabled by default, but I also want to allow users to deactivate them if they prefer not to use them.

Just change the feature code accordingly.

If you add a .rlig suffix to a glyph, it will be added to the rlig feature code.

@SCarewe
if I set the ligatures as rlig the user can not be deactivate it!

I see. That’s not possible, as this is not how dlig is supposed to work.

You can put the ligatures in the liga feature, it should be active by default. Of course, if you already have other ligatures in there, they cannot be controlled independently.

@jkutilek
thank you that is helpful.

That would have to be a standard ligature. Put it in liga. dlig is explicitly the opposite (off by default, user can disable). Likewise, if you want a shape to be default, put it in the unsuffixed (default) glyph. Stylistic sets are supposed to be optional alternates.