-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com.google.fonts/check/metadata/has_regular fails on variable font when default instance != 400 #2378
Comments
I run into this issue a lot. |
@thundernixon, in the commit you gave as a resource for replicating the issue, I see that there's a single file called EncodeSans-Thin.ttf which is referenced in METADATA.pb as Is EncodeSans-Thin.ttf a variable font? Nothing in that filename indicates that it is. That's probably why it is being treated as a static. Since this issue was opened back in March, maybe you could update us here on what changed in Encode Sans regarding this check. Should this check be SKIP'd for variable fonts? Should we add new requirements for how variable fonts are described in METADATA.pb files? |
@thundernixon, could you please take a quick look at this one? |
Hi Felipe, really sorry for the delay; I'm just coming back to Encode Sans and have opened a new, simpler PR for it now that Google Fonts can accept multi-axis VFs. To your question, yes, Encode Sans is a variable font. Here's the current
The default instance is wght 100, and this METADATA.pb is being generating from
To answer your question slightly more fully:
We could query the Potentially, we could run a separate check to find if the default instance is correctly represented in the METADATA, but that could be a separate issue. If we wanted to do this, we could check the <!-- Weight -->
<Axis>
<AxisTag>wght</AxisTag>
<Flags>0x0</Flags>
<MinValue>100.0</MinValue>
<DefaultValue>100.0</DefaultValue>
<MaxValue>900.0</MaxValue>
<AxisNameID>256</AxisNameID>
</Axis> |
Observed behaviour
com.google.fonts/check/metadata/has_regular ("families should have a Regular style") fails for Encode Sans, because the default instance described in metadata is
100
weight. Encode Sans variable fonts do have regular instances, but these are not described inMETADATA.pb
, because (as far as I know) we are only describing the single VF file, not its instances.Expected behaviour
This seems like a useful, basic thing to check for, but it should instead check the name and stat tables in the font file, rather than relying on what is described in the accompanying
METADATA.pb
, as I believe is currently happening.Resources and exact process needed to replicate
You can reproducde this check fail by running
fontbakery check-googlefonts
on the VF at https://github.com/google/fonts/tree/73ce307df62af54796476ba69d222d88ab1fa525/ofl/encodesansThe text was updated successfully, but these errors were encountered: