opentypejs/opentype.js

Corrupted font file handling

Open

#337 opened on Mar 16, 2018

View on GitHub
 (4 comments) (0 reactions) (1 assignee)JavaScript (4,170 stars) (512 forks)batch import
enhancementhelp wantedquestion

Description

The more different tables we parse in opentype.js, the more we come across corrupted font files. Most of them are still usable with other software, but opentype.js currently throws errors and stops parsing the font. Shouldn't we try to skip (sub)tables containing errors ? Should we report errors in some way ? Maybe just keeping a log of ignored tables ? What do you think ? @fdb @Jolg42 @Pomax and others ?

Contributor guide

Corrupted font file handling · opentypejs/opentype.js#337 | Good First Issue