Skip to content

Commit 6bb0a48

Browse files
committed
Merge pull request #5703 from Snuffleupagus/issue-5701
Relax the |isSymbolicFont| check for TrueType (3, 1) cmap tables (issue 5701)
2 parents 76a24d8 + 592890a commit 6bb0a48

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

src/core/fonts.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -3184,9 +3184,11 @@ var Font = (function FontClosure() {
31843184
useTable = true;
31853185
// Continue the loop since there still may be a higher priority
31863186
// table.
3187-
} else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
3187+
} else if (platformId === 3 && encodingId === 1) {
31883188
useTable = true;
3189-
canBreak = true;
3189+
if (!isSymbolicFont) {
3190+
canBreak = true;
3191+
}
31903192
} else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
31913193
useTable = true;
31923194
canBreak = true;

test/pdfs/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,4 @@
115115
!issue5475.pdf
116116
!issue5481.pdf
117117
!issue5567.pdf
118+
!issue5701.pdf

test/pdfs/issue5701.pdf

13.7 KB
Binary file not shown.

test/test_manifest.json

+7
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,13 @@
16991699
"type": "eq",
17001700
"about": "Invisible Type3 font used for text selection and searching."
17011701
},
1702+
{ "id": "issue5701",
1703+
"file": "pdfs/issue5701.pdf",
1704+
"md5": "7ec476aee12e8bd6be79140223d329c1",
1705+
"rounds": 1,
1706+
"link": false,
1707+
"type": "eq"
1708+
},
17021709
{ "id": "issue5280",
17031710
"file": "pdfs/issue5280.pdf",
17041711
"md5": "0ea1230e2964e74cb6db063a89b78803",

0 commit comments

Comments
 (0)