-
Notifications
You must be signed in to change notification settings - Fork 105
Add VF check to ensure os/2 weightClass is same as default wght axis position #2364
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
Comments
From the spec.
https://docs.microsoft.com/en-us/typography/opentype/spec/otvaroverview I hope this makes things clearer. |
There is a seeming conflict in these two checks:
...or potentially, we just need to be more specific about what custom parameter we tell people to set in Glyphs. |
As a bit more context, if I set the ...then export via FontMake, it results in a font with:
...in the OS/2 table, and:
...in STAT. This is basically backwards of what I (think) fontbakery is asking me to do. |
@m4rc1e when you say
I assume this means that if the default weight axis position is 100 (or 200) to work for CSS, then the OS/2 weight should also be 100 (or 200), rather than 250 (or 275). Correct? If so, we should update check 112 for variable fonts. |
Running into pretty much the same problem. Has there been any progress on how to deal with this contradiction in the meantime? |
@arialcrime have you assigned 250 to Thin and 275 to ExtraLight? if so, set them to 200 and 300. |
@felipesanches I reckon the requirement for 250 and 275 is dogma and should be investigated and dropped. |
I wouldn't call it dogma because it had a clear rationale. I would potentially call it a deprecated practice, instead. Should we really deprecate it though? |
I don't see a rationale, https://github.com/googlefonts/fontbakery/blob/master/Lib/fontbakery/profiles/googlefonts.py#L800-L837 I just see dogma. No one has tested the otf blur assumption AFAIK. |
Thanks Marc. Any particular reason why these values don’t follow the recommendation of the spec? |
We believe that Thin and ExtraLight should not be set to 100 and 200 for CFF fonts. We think they get blurred on certain versions of Windows. Whether it's true or not is up for debate since no one has tested it. |
I have asked for time next year to clean up the name checks. Hopefully I'll find time to solve these edgecases because they're infuriating. |
The OS/2 weightClass should be the same as the default wght axis position.
google/fonts#1857
The text was updated successfully, but these errors were encountered: