Skip to content

Commit bc7a110

Browse files
committed
Merge pull request #5743 from Snuffleupagus/pr-5703-followup
Only skip the |!isSymbolicFont| check for TrueType (3, 1) cmap tables if no previous cmap table was found (PR 5703 followup)
2 parents 6bb0a48 + 417800a commit bc7a110

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

src/core/fonts.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3184,7 +3184,8 @@ var Font = (function FontClosure() {
31843184
useTable = true;
31853185
// Continue the loop since there still may be a higher priority
31863186
// table.
3187-
} else if (platformId === 3 && encodingId === 1) {
3187+
} else if (platformId === 3 && encodingId === 1 &&
3188+
(!isSymbolicFont || !potentialTable)) {
31883189
useTable = true;
31893190
if (!isSymbolicFont) {
31903191
canBreak = true;

test/pdfs/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
!scan-bad.pdf
3030
!bug847420.pdf
3131
!bug860632.pdf
32+
!bug894572.pdf
3233
!pdfjsbad1586.pdf
3334
!freeculture.pdf
3435
!pdfkit_compressed.pdf

test/pdfs/bug894572.pdf

41 KB
Binary file not shown.

test/test_manifest.json

+7
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,13 @@
11061106
"lastPage": 1,
11071107
"type": "eq"
11081108
},
1109+
{ "id": "bug894572",
1110+
"file": "pdfs/bug894572.pdf",
1111+
"md5": "e54a6b0451939f685ed37e3d46e16158",
1112+
"rounds": 1,
1113+
"link": false,
1114+
"type": "eq"
1115+
},
11091116
{ "id": "issue1466",
11101117
"file": "pdfs/issue1466.pdf",
11111118
"md5": "8a8877432e5bb10cfd50d60488d947bb",

0 commit comments

Comments
 (0)