mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Properly build toFontChar
This commit is contained in:
parent
b4e3554af2
commit
26b58c0e4f
1 changed files with 3 additions and 2 deletions
|
@ -2147,8 +2147,9 @@ var Font = (function FontClosure() {
|
|||
for (var i = 0, ii = toUnicode.length; i < ii; i++) {
|
||||
var unicode = toUnicode[i];
|
||||
var fontCharCode = typeof unicode === 'object' ? unusedUnicode++ :
|
||||
unicode;
|
||||
result.push(fontCharCode);
|
||||
unicode;
|
||||
if (typeof unicode !== 'undefined')
|
||||
result[i] = fontCharCode;
|
||||
}
|
||||
return result;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue