Hello I faced a problem with kerning letters or marks in Arabic using Number Values from Masters.
When writing a regular pos code using numbers
pos reh-ar lam.init-ar kasra-ar’<30 0 0 0>;
it will move kasra-ar 30 pixels on x axes for both static and variable. But, when writing
pos reh-ar lam-ar.init kasra-ar'<$kasraX 0 0 0>; and kasraX = 30
it will move 30 on static fonts but not variable font. Tested on FontGoggles.
In exports, I have only static weights. Is there a something wrong in my kern/mark code or exports that makes it does not run for variable fonts? Thank you
Could you send me a test file?
Sorry I cannot
I’ve created a new font file with only 2 letters to try, and it works for both
What are possible things that may prevent kern/mark work for variable fonts?
Can you use the old font file and clean out all outlines (or run the Disguiser filter) and font info that you need to? Maybe there is something else in the file that causes this.
I discovered that it takes the NumberValue of the first master in masters panel
Here the first master in order is X (created after regular master) and the value of NumberValue = 2
The second master is Regular and the NumberValue = 500
When I export it it takes only the NumberValue of the first master which is 2, if I put Regular master in the top and export it, the kern value becomes 500 for all weights in variable. Tested in FontGoggles with a new file and old file also
Number values from masters are not exported as variable GPOS, yet. We are working in this. For now you need to do it like this: Variable GPOS — Glyphs Handbook