mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge upstream.
This commit is contained in:
commit
3f8ba7d56a
3 changed files with 14 additions and 2 deletions
|
@ -1791,6 +1791,10 @@ var Font = (function FontClosure() {
|
|||
var i = unassignedUnicodeItems[j];
|
||||
while (unusedUnicode in usedUnicodes)
|
||||
unusedUnicode++;
|
||||
var cid = i + 1;
|
||||
// override only if unicode mapping is not specified
|
||||
if (!(cid in toUnicode))
|
||||
toUnicode[cid] = unusedUnicode;
|
||||
glyphs[i].unicode = unusedUnicode++;
|
||||
}
|
||||
this.useToUnicode = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue