opentypejs / opentype.js

Read and write OpenType fonts using JavaScript.
https://opentype.js.org/
MIT License
4.41k stars 472 forks source link

Tabler Icons font not working #617

Open andreinitescu opened 10 months ago

andreinitescu commented 10 months ago

Expected Behavior

The font https://github.com/tabler/tabler-icons cannot be open in https://opentype.js.org/

image

Steps to Reproduce (for bugs)

  1. Extract https://github.com/tabler/tabler-icons/releases/download/v2.38.0/tabler-icons-2.38.0.zip
  2. In https://opentype.js.org/ try open any front from the webfont\fonts directory
Connum commented 10 months ago

Looks like the font uses an incorrect value then, because 1 and 2 are the only possible formats for the coverage table according to the spec: https://learn.microsoft.com/en-us/typography/opentype/spec/chapter2#coverage-table

But it would indeed be better if we could still load the font instead of just aborting with an error.