mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fixes reading CFF with two .notdef in charset
This commit is contained in:
parent
969a2010b2
commit
31b5f566d6
3 changed files with 10 additions and 3 deletions
|
@ -5099,10 +5099,9 @@ var CFFFont = (function CFFFontClosure() {
|
|||
inverseEncoding[encoding[charcode]] = charcode | 0;
|
||||
else
|
||||
inverseEncoding = charsets;
|
||||
for (var i = 0, ii = charsets.length; i < ii; i++) {
|
||||
var i = charsets[0] == '.notdef' ? 1 : 0;
|
||||
for (var ii = charsets.length; i < ii; i++) {
|
||||
var glyph = charsets[i];
|
||||
if (glyph == '.notdef')
|
||||
continue;
|
||||
|
||||
var code = inverseEncoding[i];
|
||||
if (!code || isSpecialUnicode(code)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue