mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Fixing the CID to GID mapping for cid fonts (regression of arial_unicode_XX_cidfont.pdf)
This commit is contained in:
parent
537eb8f47b
commit
1c5b1cbc34
1 changed files with 7 additions and 4 deletions
11
fonts.js
11
fonts.js
|
@ -1165,10 +1165,13 @@ var Font = (function Font() {
|
|||
};
|
||||
}
|
||||
} else {
|
||||
for (i = 0; i <= 0x1f; i++)
|
||||
encoding[i].unicode += kCmapGlyphOffset;
|
||||
for (i = 127; i <= 255; i++)
|
||||
encoding[i].unicode += kCmapGlyphOffset;
|
||||
for (i in encoding) {
|
||||
if (encoding.hasOwnProperty(i)) {
|
||||
var unicode = encoding[i].unicode;
|
||||
if (unicode <= 0x1f || (unicode >= 127 && unicode <= 255))
|
||||
encoding[i].unicode = unicode += kCmapGlyphOffset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var glyphs = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue