Skip to content

Commit a662d26

Browse files
Merge pull request #8243 from brendandahl/no-skip-glyph0
Don’t skip glyph 0 in cmap.
2 parents c380d25 + cdc79a4 commit a662d26

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/core/fonts.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,9 +1474,6 @@ var Font = (function FontClosure() {
14741474
glyphId = (offsetIndex < 0 ?
14751475
j : offsets[offsetIndex + j - start]);
14761476
glyphId = (glyphId + delta) & 0xFFFF;
1477-
if (glyphId === 0) {
1478-
continue;
1479-
}
14801477
mappings.push({
14811478
charCode: j,
14821479
glyphId: glyphId

test/pdfs/issue8234.pdf

13.4 KB
Binary file not shown.

test/test_manifest.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,12 @@
12431243
"rounds": 1,
12441244
"type": "eq"
12451245
},
1246+
{ "id": "issue8234",
1247+
"file": "pdfs/issue8234.pdf",
1248+
"md5": "32650fc60c51a9813b98bc9876dc15af",
1249+
"rounds": 1,
1250+
"type": "eq"
1251+
},
12461252
{ "id": "type4psfunc",
12471253
"file": "pdfs/type4psfunc.pdf",
12481254
"md5": "7e6027a02ff78577f74dccdf84e37189",

0 commit comments

Comments
 (0)