1
0
Fork 0
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:
Brendan Dahl 2011-12-12 15:34:11 -08:00
commit 3f8ba7d56a
3 changed files with 14 additions and 2 deletions

View file

@ -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;