google / google/fonts

EB Garamond's kerning data not readable by OpenType.js

Open
#4,714 7 comments 0 reactions 0 assignees View on GitHub
I Font Bug
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

**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**
1. go to https://codepen.io/wendyz/pen/PoQJyoX?editors=0011
2. open the console
3. OpenType.js return AV Kerning to be 0, where it should be -140
![image](https://user-images.githubusercontent.com/41246474/105073213-c42d7c00-5a54-11eb-9ffc-3adfc0d29a97.png)

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
![image](https://user-images.githubusercontent.com/41246474/105073257-d14a6b00-5a54-11eb-9872-82aadea978a7.png)

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…)
* OpenType.js Version used: 1.3.4 https://github.com/opentypejs/opentype.js/
* Font used: EB Garamond
* Browser Name and version: Chrome
* Operating System and version (desktop or mobile): Mac and Windows
* Link to your project: https://codepen.io/wendyz/pen/PoQJyoX?editors=0011
* Old issue that is related but resolved: https://github.com/opentypejs/opentype.js/issues/19
I also reported this issue to OpenType.js: https://github.com/opentypejs/opentype.js/issues/515

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.