graphicore / specimenTools

Apache License 2.0
29 stars 5 forks source link

Added check to ensure FontsData.js doesn't break on fonts without scr… #11

Closed kontur closed 7 years ago

kontur commented 7 years ago

…ipt tables

I was working on a alternative rendering of opentype feature and wanted to test reacting to a font that doesn't have any opentype features (however unlikely that is). On using such a font, I noticed that FontsData.js assumes a scripts table to be present in the code, and throws an error when there isn't. I simply wrapped that check in an if to avoid failure - maybe there is further actions that should be taken?

graphicore commented 7 years ago

Thanks!