Skip to content

Commit

Permalink
Merge pull request #5703 from Snuffleupagus/issue-5701
Browse files Browse the repository at this point in the history
Relax the |isSymbolicFont| check for TrueType (3, 1) cmap tables (issue 5701)
  • Loading branch information
brendandahl committed Feb 18, 2015
2 parents 76a24d8 + 592890a commit 6bb0a48
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3184,9 +3184,11 @@ var Font = (function FontClosure() {
useTable = true;
// Continue the loop since there still may be a higher priority
// table.
} else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
} else if (platformId === 3 && encodingId === 1) {
useTable = true;
canBreak = true;
if (!isSymbolicFont) {
canBreak = true;
}
} else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
useTable = true;
canBreak = true;
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,4 @@
!issue5475.pdf
!issue5481.pdf
!issue5567.pdf
!issue5701.pdf
Binary file added test/pdfs/issue5701.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,13 @@
"type": "eq",
"about": "Invisible Type3 font used for text selection and searching."
},
{ "id": "issue5701",
"file": "pdfs/issue5701.pdf",
"md5": "7ec476aee12e8bd6be79140223d329c1",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue5280",
"file": "pdfs/issue5280.pdf",
"md5": "0ea1230e2964e74cb6db063a89b78803",
Expand Down

0 comments on commit 6bb0a48

Please sign in to comment.