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.

[googlefonts] new check: mandatory avar table

See original GitHub issue

In this twitter conversation @davelab6 wished for a fontbakery check on the googlefonts profile to make avar table mandatory: https://twitter.com/davelab6/status/1331698384743387138

Screenshot from 2020-11-25 17-40-21

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
felipesanchescommented, Aug 16, 2022

Current rationale text for this check starts with "Most variable fonts should include an avar table to correctly define axes progression rates."

At https://github.com/justvanrossum/nabla/issues/25#issuecomment-1215650287 @davelab6 said:

@justvanrossum yes, that’s fair, since the description is “most” not “all” then FAIL is heavy handed.

So, I will make this a WARN.

1reaction
tirojcommented, Oct 13, 2021

You could go one step further and a) check this for the wght axis only, b) report a warning if the wght axis covers three steps of the CSS scale (e.g. Adam’s 700–900 example), and c) report a fail if the wght axis covers more than three steps of the CSS scale.

Really, though, this is a design issue, and the question is not whether a variable font should contain an avar table but whether the weight progression should be linear or non-linear. The answer to that question from type designers making fonts with extensive weight ranges is most often that weight progression should be non-linear, and ergo such fonts are going to need an avar table. The greater the weight range, the more likelihood that a non-linear wght progression is desirable, and hence my suggestion to tweak the test accordingly.

The bigger problem here is that FontBakery doesn’t know anything about design intent, so will inevitably produce some reports and recommendations that do not apply to specific fonts. At present, these need to be negotiated between the designers and Google Fonts, and sometimes exceptions are granted, but then those exceptions need to be tracked. One solution to this would be to front-end some information about the design intent as input to FB, e.g. some kind of configuration file to aid FB with information about the font from the font maker such as ‘wght progression is non-linear’ ‘TRUE/FALSE’.

Read more comments on GitHub >

github_iconTop Results From Across the Web

googlefonts — Font Bakery 0.8.10 documentation
Check font follows the Google Fonts CJK vertical metric schema ... Most variable fonts should include an avar table to correctly define axes...
Read more >
Google Font QA report · Issue #4843 - GitHub
ℹ INFO From a total of 1 font files, 1 of them (100.00%) lack a STAT table. ... 🔥 FAIL Missing required codepoints:...
Read more >
Variable fonts - Google Fonts
Font Family Axes Default Values Akshar wght 400 300..700 Albert Sans ital 0 0, 1 Albert Sans Albert Sans wght 400 100..900
Read more >
Cannot Get Google Webfonts to Work - Litmus
Hi all, I'm trying to use the seemingly simple Google webfonts technique ... This is a Web Font Test Q </td> </tr> </table>...
Read more >
All The Fontbakery Checks!
Profiles, adobefonts universal notofonts opentype googlefonts typenetwork cff ... Check the name table for empty records, as this can cause problems in ...
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