question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

STAT FVAR check: Font families with Italic styles should have an ital axis

See original GitHub issue

Should be triggered if “Italic” is part of the file name, or NameID2, or NameID17. The ticked cases indicates where you can already find it.

Ital axis should be set in STAT table

<AxisTag value="ital"/>

Profile

  • in google-font profile
  • in universal profile
  • in opentype profile

Format

  • in VF check
  • ~in static check~

Initial issue posted:

Observed behaviour

I have this Fontbakery fail :

Check correctness of STAT table strings
* [com.google.fonts/check/STAT_strings](https://font-bakery.readthedocs.io/en/latest/fontbakery/profiles/universal.html#com.google.fonts/check/STAT_strings)

On the STAT table, the _Italic_; keyword must not be used on AxisValues for
variation axes other than _ital_.

 **FAIL** The following AxisValue entries on the STAT table should not contain "Italic":
 ['Thin Italic', 'ExtraLight Italic', 'Light Italic', 'Italic', 'Medium Italic', 'SemiBold Italic', 'Bold Italic', 'ExtraBold Italic', 'Black Italic', 'Thin Italic', 'ExtraLight Italic', 'Light Italic', 'Italic', 'Medium Italic', 'SemiBold Italic', 'Bold Italic', 'ExtraBold Italic', 'Black Italic'] [code: bad-italic]

Expected behaviour

Uprights and italics are separated in 2 variable fonts. Therefore there is no ital axis and the word ‘italic’ is only used to describe the instances name. But I have a poor experience with STAT table so I actually don’t know if it is a bug from Fontbaky, from Fontmake or the build script.

Resources and exact process needed to replicate

Report and fonts can be found in this PR : Epilogue-PR12

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
m4rc1ecommented, Jun 19, 2020

I’ve nearly finished writing an update to our STAT table generator. Special thank you to @thlinard who has been reviewing the output.

1reaction
punchcuttercommented, Jun 18, 2020

Ideally you would have an ital axis in both fonts set to 0 in the Upright and 1 in the Italic. Like the check above says there shouldn’t be ‘Italic’ in the axis value names of the Italic STAT table. They should have the same names as the Upright. ‘Italic’ should also be defined as the elidable name in the Italic STAT table. That way software that understands STAT tables can generate the proper name based on these settings.

I see this STAT table is coming from a hack in gftools to take the values from the fvar, but the information that can be shared with fvar is limited. The fvar should have instances named as users expect to see them in the named instance pulldown menu. STAT should only provide the building blocks for an application to synthesize a name on the fly and/or provide other information or UI elements which don’t exist yet. For now I suggest creating a ttx STAT stub and inserting it in the build process. We have added STAT support to makeotf and are waiting for fontTools to also implement support for building off of a fea syntax file so we’re getting there, but not quite yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Italic metadata are consistent in Italic fonts (universal?) #3611
STAT FVAR check : Font families with Italic styles should have an ital axis #2934 · 'ital' axis value in STAT table should...
Read more >
Italic axis (ital) – Fonts Knowledge - Google Fonts
“Italic” ( ital in CSS) is an axis found in some variable fonts. It controls the font file's italic parameter, with italics either...
Read more >
fvar — Font Variations Table (OpenType 1.8) - Typography
The font variations table ('fvar') provides the global definition of variations supported within the font. It specifies the axes of variation ...
Read more >
Variabe Font issue in Indesign 2020 - TypeDrawers
Both fonts have corresponding named instances and one axis (weight axis). ... the axis slider my font jumps immediately to the italic style....
Read more >
Source code for fontbakery.profiles.googlefonts - Read the Docs
ttf Variable fonts must list the axis tags in alphabetical order in square brackets and separated by commas: - Roboto[wdth,wght].ttf - Familyname-Italic[wght].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found