Skip to content
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

Ensure fsSelection bit 7 is enabled for VFs #3021

Closed
wants to merge 2 commits into from

Conversation

m4rc1e
Copy link
Collaborator

@m4rc1e m4rc1e commented Aug 24, 2020

We recently pushed Merriweather Sans VF and it didn't have this bit enabled. This caused the following issue, google/fonts#2631

According to the MS Spec it should be enabled for variable fonts anyway:

In variable fonts, default line metrics should always be set using the sTypoAscender, sTypoDescender and sTypoLineGap values, and the USE_TYPO_METRICS flag in the fsSelection field should be set.

https://docs.microsoft.com/en-us/typography/opentype/spec/os2#os2-table-and-opentype-font-variations

I've also updated the style condition so it will work on variable fonts and also added the missing unit test for the fsselection check.

@felipesanches once this is merged, I'll also update the vertical metrics regression check. I'll take another look at this pr later. I want to start submitting better PRs so you don't end up wasting your time correcting my lint errors errors etc.

@felipesanches
Copy link
Collaborator

what's the status of this one, @m4rc1e ?

@felipesanches felipesanches deleted the branch fonttools:master January 25, 2021 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants