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:
commit
238e16feeb
4 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue