1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #6407 from Snuffleupagus/bug-1200096

Fallback in `readCmapTable`, instead of using `error`, for TrueType fonts with unsupported cmap formats (bug 1200096)
This commit is contained in:
Brendan Dahl 2015-09-04 18:10:34 -07:00
commit 238e16feeb
4 changed files with 15 additions and 1 deletions

View file

@ -3390,7 +3390,13 @@ var Font = (function FontClosure() {
});
}
} else {
error('cmap table has unsupported format: ' + format);
warn('cmap table has unsupported format: ' + format);
return {
platformId: -1,
encodingId: -1,
mappings: [],
hasShortCmap: false
};
}
// removing duplicate entries