Hello, I need some help understanding what’s going on. I have a variable font that includes an ital axis (0–1).
I get:
Check ID: <FontBakeryCheck:com.google.fonts/check/italic_axis_in_stat_is_boolean>
Check that the value of the 'ital' STAT axis is boolean (either 0 or 1), and elided for the Upright and not elided for the Italic, and that the Upright is linked to the Italic.
⚠️ MyFontVF-Regular.ttf
⚠️ WARN
STAT table 'ital' axis flag is wrong. Expected: 2 (elided) Got: '0'
[code: wrong-ital-axis-flag]
⚠️ WARN
STAT table 'ital' axis is not linked to Italic.
[code: wrong-ital-axis-linkedvalue]
I have set up my variable font setting using “Regular” as the name. As mentioned, I set up my ital axis as going from 0 to 1. What else do I need to do?
I see. Maybe I’m missing something in my variable font setting. What custom parameters do I need to set? Currently, I have no custom parameters set (except for fileName).
I had a look at the file you mentioned to me in DM.
Axis Location parameters were incomplete. The script Set Weight Axis Locations in Instances fixes this automatically. (In the font you sent me, you don’t need Axis Location parameters at all because they always coincide with the internal coordinates; so in this case, you could also delete them all.)
Glyphs indeed has an issue with getting the STAT entry for the Regular on the ital axis. You can fix this by adding a parameter called Italic Style Linking (value: on) to the variable font setting.
I completed the axis location parameters for all instances. This didn’t change anything on the result. Removing all axis location parameters also didn’t change anything.
The custom parameter italic style linking also didn’t fix it, sadly. Did you get it to work with the file I provided?
Okay, there are a couple of ways to take control of STAT. The easiest is the mekkablue > Post Production script Read and Write STAT Axis Values.
Export the OTVAR.
Run the script once. There are now Axis Values parameters in your Variable Font Setting in Font Info > Exports. They describe the STAT table that currently is in the exported TTF.
Edit it to your liking, the basic syntax is: axisTag; value=name, value=name, ..., the value name pairs are: value=name (format 1), value>linkedValue=name (format 3) and in case you need it, minValue:nominalValue:maxValue=name (format 2). Add an asterisk * after a name for marking it as elidable.
Run the script again, and the Axis Values are written into the TTF.
Note: with Rainer’s tips, I got it to work correctly. Thanks!
I’ll need to check whether I only need to add the Italic Style Linking parameter on “normal” families, because I’ve always had this issue, even with the most simple setups.
Small request, would there be the possibility of adding an option to define a custom last variable font export path? Currently, it’s Glyphs.defaults["GXExportPathManual"], but since I use a custom plugin to export variable fonts, that default doesn’t reflect the actual location of my last export.
Setting a custom parameter such as VF Export Location with a relative path (such as ./Exports/1.005/VAR) would be really useful.
mekkablue
(Rainer Erich Scheichelbauer)
Split this topic
13
I’d rather not hardcode the export location in the file. Very error-prone. Then it is easier to update GXExportPathManual or simply export once through the regular UI.