-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
EB Garamond's kerning data not readable by OpenType.js #4714
Comments
Does not appear to be an issue with the fonts. |
https://github.com/behdad/fonttools/ has support for this in python, so basically the feature request is to port the fontTools code to opentype.js |
Thanks for the quick reply and the information! Can you point me to part of the code in https://github.com/behdad/fonttools/ that is related to this? I want to take a stab at porting it to OpenType.js but need some directions :) |
Is Google Font consistently putting kerning data in the same place, or it depends font to font? |
What is your method of checking the font and see where the kerning data is stored at? |
I used a font editor to look at what was there. |
@kenmcd I understand that the font has kerning data, and works fine with other program, that is what I said in the issue request. |
Describe the bug
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
This may also apply to other Google Fonts like: DM Serif Text
To Reproduce
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
However when I download EB Garamond 8pt (another version) from the type designer's Bitbucket repo, OpenType.js output proper kerning for that version of EB Garamond font.
Expected behavior
Get correct kerning info from OpenType.js, like the EB Garamond version downloaded frrom bitbucket: https://bitbucket.org/georgd/eb-garamond/downloads/
Additional context
Add any other context about the problem here (OS version, browser, printer…)
I also reported this issue to OpenType.js: OpenType.js can't read Google fonts' kerning, eg. EB Garamond opentypejs/opentype.js#515
The text was updated successfully, but these errors were encountered: