Merge pull request #2245 from yurydelendik/issue-1912
Fixes reading CFF with two .notdef in charset
This commit is contained in:
commit
c8cf4458c6
@ -5132,10 +5132,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)) {
|
||||
|
1
test/pdfs/issue1912.pdf.link
Normal file
1
test/pdfs/issue1912.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
http://rua.ua.es/dspace/bitstream/10045/23475/1/OBETS_07_01_03.pdf
|
@ -671,6 +671,13 @@
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue1912",
|
||||
"file": "pdfs/issue1912.pdf",
|
||||
"md5": "15305b7c2cba971e7423de3f6ad38fef",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "gradientfill",
|
||||
"file": "pdfs/gradientfill.pdf",
|
||||
"md5": "cbc1988e4803f647fa83467a85f0e231",
|
||||
|
Loading…
x
Reference in New Issue
Block a user