-
Notifications
You must be signed in to change notification settings - Fork 479
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
OpenType.js can't read Google fonts' kerning, eg. EB Garamond #515
Comments
@davelab6 could you provide some insight on this as well? The happens with Google Fonts' version of EB Garamond, but not with the type designer's version of EB Garamond on their bitbucket repo. |
@Connum to help narrow down the problem area, maybe this information helps: |
This has already been fixed in the upcoming version. |
Nevermind, apparently google has changed their fonts they're hosting. |
I suspect #557 will fix this issue. |
The issue is the font is missing the old KERN table and has GPOS 9 and 4 entries. This will be fixed by #557. |
Download the ttf from https://fonts.google.com/specimen/EB+Garamond. use it as a test. The fonts have kerning info, and can be used as regular desktop fonts with proper kerning. However, OpenType.js can't read its kerning data. letter AV kerning should be -140, but OpenType.js returns 0
Steps to Reproduce (for bugs)
When I open the EB Garamond font with Robofont, I can see there is kerning info in the kern center. AV kern should be -140
Extra info: I download EB Garamond 8pt (another version) from the type designer's Bitbucket repo, and OpenType.js output proper kerning for that font. Included in the codepen example. cc. @davelab6
It may affect other Google Fonts as well, eg.
Your Environment
The text was updated successfully, but these errors were encountered: