Glyphs substituions in instances

Hey everyone!

I have some glyph substitutions in the ‘rlig’ feature; everything works well when I export it as a variable font, and the substitutions happen at the right time.

e.g. of my ‘rlig’ feature:
#ifdef VARIABLE
condition 480 < wght ;
sub C by C.2;

My problem is that when exporting instances, the substitutions don’t happen.
I get stuck with the ‘C’ for all static instances.

Does anyone know how I can fix it?
Thank you so much!

The conditional substitutions are only supported in variable fonts and to not confuse the static export, they are hidden from them with the #ifdef VARIABLE macro.
for static fonts, you need a “Add Feature” custom parameter (that contains the substitution code) in the instances where you need it.

1 Like

Thank you so so much Georg! Working perfectly now :raising_hands: