For CIDFontType2 use CID as glyph ID when missing CID to GID map.
This commit is contained in:
parent
c53581f4e5
commit
6e1d131384
@ -2279,7 +2279,7 @@ var Font = (function FontClosure() {
|
|||||||
assert(cid <= 0xffff, 'Max size of CID is 65,535');
|
assert(cid <= 0xffff, 'Max size of CID is 65,535');
|
||||||
var glyphId = -1;
|
var glyphId = -1;
|
||||||
if (isCidToGidMapEmpty) {
|
if (isCidToGidMapEmpty) {
|
||||||
glyphId = charCode;
|
glyphId = cid;
|
||||||
} else if (cidToGidMap[cid] !== undefined) {
|
} else if (cidToGidMap[cid] !== undefined) {
|
||||||
glyphId = cidToGidMap[cid];
|
glyphId = cidToGidMap[cid];
|
||||||
}
|
}
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -67,6 +67,7 @@
|
|||||||
!devicen.pdf
|
!devicen.pdf
|
||||||
!cmykjpeg.pdf
|
!cmykjpeg.pdf
|
||||||
!issue840.pdf
|
!issue840.pdf
|
||||||
|
!issue4402_reduced.pdf
|
||||||
!issue845r.pdf
|
!issue845r.pdf
|
||||||
!issue3405r.pdf
|
!issue3405r.pdf
|
||||||
!issue3438.pdf
|
!issue3438.pdf
|
||||||
|
BIN
test/pdfs/issue4402_reduced.pdf
Normal file
BIN
test/pdfs/issue4402_reduced.pdf
Normal file
Binary file not shown.
@ -902,6 +902,13 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue4402_reduced",
|
||||||
|
"file": "pdfs/issue4402_reduced.pdf",
|
||||||
|
"md5": "6cc7e61a581889eec3ed7402d87161c4",
|
||||||
|
"link": false,
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "protectip",
|
{ "id": "protectip",
|
||||||
"file": "pdfs/protectip.pdf",
|
"file": "pdfs/protectip.pdf",
|
||||||
"md5": "676e7a7b8f96d04825361832b1838a93",
|
"md5": "676e7a7b8f96d04825361832b1838a93",
|
||||||
|
Loading…
Reference in New Issue
Block a user