Skip to content

OpenType.js can't read Google fonts' kerning, eg. EB Garamond #515

Open
@Typogram

Description

@Typogram

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)

  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

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

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.

  • DM Serif Text

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions