mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Skip properties inherited from array.prototype
This commit is contained in:
parent
81bae99ab0
commit
00dbce612f
1 changed files with 9 additions and 7 deletions
16
src/fonts.js
16
src/fonts.js
|
@ -2773,14 +2773,16 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
}
|
||||
for (var index in newGlyphUnicodes) {
|
||||
var unicode = newGlyphUnicodes[index];
|
||||
if (reverseMap[unicode]) {
|
||||
// avoiding assigning to the same unicode
|
||||
glyphs[index].unicode = unusedUnicode++;
|
||||
continue;
|
||||
if (newGlyphUnicodes.hasOwnProperty(index)) {
|
||||
var unicode = newGlyphUnicodes[index];
|
||||
if (reverseMap[unicode]) {
|
||||
// avoiding assigning to the same unicode
|
||||
glyphs[index].unicode = unusedUnicode++;
|
||||
continue;
|
||||
}
|
||||
glyphs[index].unicode = unicode;
|
||||
reverseMap[unicode] = index;
|
||||
}
|
||||
glyphs[index].unicode = unicode;
|
||||
reverseMap[unicode] = index;
|
||||
}
|
||||
this.useToFontChar = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue