Don’t skip glyph 0 in cmap.
This commit is contained in:
parent
c380d25407
commit
cdc79a4721
@ -1474,9 +1474,6 @@ var Font = (function FontClosure() {
|
|||||||
glyphId = (offsetIndex < 0 ?
|
glyphId = (offsetIndex < 0 ?
|
||||||
j : offsets[offsetIndex + j - start]);
|
j : offsets[offsetIndex + j - start]);
|
||||||
glyphId = (glyphId + delta) & 0xFFFF;
|
glyphId = (glyphId + delta) & 0xFFFF;
|
||||||
if (glyphId === 0) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
mappings.push({
|
mappings.push({
|
||||||
charCode: j,
|
charCode: j,
|
||||||
glyphId: glyphId
|
glyphId: glyphId
|
||||||
|
BIN
test/pdfs/issue8234.pdf
Normal file
BIN
test/pdfs/issue8234.pdf
Normal file
Binary file not shown.
@ -1243,6 +1243,12 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue8234",
|
||||||
|
"file": "pdfs/issue8234.pdf",
|
||||||
|
"md5": "32650fc60c51a9813b98bc9876dc15af",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "type4psfunc",
|
{ "id": "type4psfunc",
|
||||||
"file": "pdfs/type4psfunc.pdf",
|
"file": "pdfs/type4psfunc.pdf",
|
||||||
"md5": "7e6027a02ff78577f74dccdf84e37189",
|
"md5": "7e6027a02ff78577f74dccdf84e37189",
|
||||||
|
Loading…
Reference in New Issue
Block a user