That works perfectly in a variable font, but I’m not super sure what’s the best way to reliably calculate the same intermediate (semi-red) values for the static instances’ filter, that would match how GPOS does it. In other words what would that function be?
I have a project with only a weight and an italic axis. I would now like to add an opsz axis that controls only the spacing. Ideally, in my working file, I would like to add as little as possible in order to keep everything easily editable.
My thought process is the following:
I add an opsz axis and set the same value for all masters (20, let’s say)
I add a “Virtual Master” custom parameter and set opsz to 8.
I add variable GPOS code like in the example above, with something like:
pos @All <0 0 0 0 (opsz:8) 50 0 50 0>;
This would leave my spacing as is for my masters (opsz 20) and add spacing for opsz=8, which is only defined by a virtual master.
Thank you. Yes, I’m trying to test it as extensively as possible (with no issues so far), but maybe somebody has already encountered some obscure issue somewhere.
Here’s one problem with 4-values positioning:
I thought of using one set of small figures and GPOSing them for superior/inferiors and fractions. For italics, when you change Y you also need to change X. It works in static exports, but not in variable (not even in Gauntlet).
So it seems to actually ignore #ifdef VARIABE altogether (if I remove #ifndef VARIABE it doesn’t move at all). Is there some difference in versions, perhaps? Mine is 3311, it says the latest
UPD: nevermind, it does of course work with VARIABLE, thanks Florian!
@GeorgSeifert, a feature suggestion: can we have number values for virtual masters please? That would allow to control the values between real masters, such as described in this topic
Is there a way to give the virtual master a name? If my true master is “Medium Text” and my virtual master is set up as described above to be the display version (tighter spaced) that it also shows up as “Medium Display” in the font menu?