# STAT table for combined roman+italic files (Fontbakery)

**URL:** <https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048>\
**Category:** Glyphs\
**Created:** [May 17, 2024, 5:09pm UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048 "2024-05-17T17:09:14Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [May 17, 2024, 5:09pm UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/1 "2024-05-17T17:09:14Z")

</div>

Hello, I need some help understanding what’s going on. I have a variable font that includes an `ital` axis (0–1).

I get:

```auto
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?

---

<div class="post-metadata">

**Author:** ![koeberlin](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/k/aeb1de/32.png) [@koeberlin](https://forum.glyphsapp.com/u/koeberlin)\
**Post date:** [May 17, 2024, 6:22pm UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/2 "2024-05-17T18:22:15Z")

</div>

I been fiddling around with it in ttx lately, and this is what worked:  
[https://christoph.koe.berlin/\_temp/STAT.ttx](https://christoph.koe.berlin/_temp/STAT.ttx)  
I hope it helps!

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [May 21, 2024, 7:51am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/3 "2024-05-21T07:51:06Z")

</div>

Can you post your STAT here?

For ital, you need Regular at 0.0, elidable, in Format 3, linking to 1.0. And an Italic at 1.0, but in Format 1.

Glyphs usually does that fine by default.

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [May 21, 2024, 8:07am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/4 "2024-05-21T08:07:01Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [May 21, 2024, 3:35pm UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/5 "2024-05-21T15:35:48Z")

</div>

I had a look at the file you mentioned to me in DM.

1. _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.)
2. 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.

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [May 21, 2024, 5:12pm UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/6 "2024-05-21T17:12:19Z")

</div>

Thank you.

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?

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [May 22, 2024, 8:21am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/7 "2024-05-22T08:21:11Z")

</div>

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._

1. Export the OTVAR.
2. 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.
3. 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.
4. Run the script again, and the Axis Values are written into the TTF.

This setup creates an A-OK STAT table:

```auto
wdth; 75=Condensed, 100=Regular*, 125=Expanded
wght; 200=Extralight, 300=Light, 400>700=Regular*, 500=Medium, 600=Semibold, 700=Bold, 800=Extrabold, 900=Black
ital; 0>1=Regular*, 1=Italic

```

Adapt to your needs, I see you have some non-standard style name shortenings (which may have confused the algorithm in the first place).

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [May 22, 2024, 8:39am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/8 "2024-05-22T08:39:52Z")

</div>

Thanks a lot! I’m currently having a closer look at this and will get back to you in case any more problems arise.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [May 22, 2024, 8:48am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/9 "2024-05-22T08:48:30Z")

</div>

@SCarewe can you send me that file, too? The algorithm should be able to generate the list listing Rainer posted and I like to check why it didn’t.

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [May 22, 2024, 9:08am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/10 "2024-05-22T09:08:14Z")

</div>

Find it here: [GitHub - eweracs/mona-sans at v1.1-shape-fixes](https://github.com/eweracs/mona-sans/tree/v1.1-shape-fixes)

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [May 22, 2024, 11:54am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/11 "2024-05-22T11:54:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![SCarewe](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/scarewe/32/18952_2.png) [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Post date:** [May 22, 2024, 9:43pm UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/12 "2024-05-22T21:43:11Z")

</div>

> [@mekkablue](#):
>
> _mekkablue \> Post Production_ script _Read and Write STAT Axis Values._

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.

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [May 26, 2024, 7:36am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/13 "2024-05-26T07:36:14Z")

</div>

Split this topic on May 26, 2024, 7:36am UTC

15 posts were split to a new topic: [Why negative values for Slant axis?](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193)

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [May 26, 2024, 7:44am UTC](https://forum.glyphsapp.com/t/stat-table-for-combined-roman-italic-files-fontbakery/30048/14 "2024-05-26T07:44:39Z")

</div>

Which custom plug-in?

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.
