mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Prevent font error when no preferred cmap table is found (workaround for issue 4800)
This commit is contained in:
parent
9664ce8e8d
commit
3c5dedf60d
1 changed files with 6 additions and 1 deletions
|
@ -2971,7 +2971,12 @@ var Font = (function FontClosure() {
|
|||
|
||||
if (!potentialTable) {
|
||||
warn('Could not find a preferred cmap table.');
|
||||
return [];
|
||||
return {
|
||||
platformId: -1,
|
||||
encodingId: -1,
|
||||
mappings: [],
|
||||
hasShortCmap: false
|
||||
};
|
||||
}
|
||||
|
||||
font.pos = start + potentialTable.offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue