opentypejs/opentype.js

Corrupted font file handling

Open

#337 opened on Mar 16, 2018

 (4 comments) (0 reactions) (1 assignee)JavaScript (512 forks)batch import
enhancementhelp wantedquestion

Repository metrics

Stars
 (4,170 stars)
PR merge metrics
 (No merged PRs in 30d)

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