"rlig" Required Ligatures for 2 masters or more

So in switching shapes tutorial the example code is for single axis, there is one example with 1 value in the brackets and two values in the brackets:

#ifdef VARIABLE

condition 127 < wght;
sub dollar by dollar.bold;
sub naira by naira.bold;
sub won by won.bold;
sub colonsign by colonsign.bold;

condition 105 < wght, wdth < 90;
sub dollar by dollar.bold;
sub naira by naira.bold;
sub won by won.bold;
sub colonsign by colonsign.bold;

#endif

But what if I have 2 axis, and 3 or 4 values?
What if I have more axis?

Thanks

That example you posted is handling multiple axes: weight (wght) and width (wdth).

Seems that my dyslexia mode is ON!

Ok, but just to be sure… if I have 4 values in the brackets it should be something like this?
condition 100 < wght < 450 , < 300 wdth < 500;

And, if there are more masters, just add them with a comma?
condition 100 < wght < 450 , < 300 wdth < 500, < 10 optz < 14;

Thanks

You can read about the condition keyword in detail in section 8.4.5 Conditional Feature Code on page 119 of the Glyphs Handbook:

https://cdn2.glyphsapp.com/media/pages/learn/f84e457b88-1639830290/glyphs-3.0.4-handbook.pdf#page=119

Note that the < never goes directly before or after a comma. So it’s

100 < wght

or

wght < 100

or

100 < wght < 200
1 Like