Skip to content

Commit

Permalink
Merge pull request mozilla#5743 from Snuffleupagus/pr-5703-followup
Browse files Browse the repository at this point in the history
Only skip the |!isSymbolicFont| check for TrueType (3, 1) cmap tables if no previous cmap table was found (PR 5703 followup)
  • Loading branch information
brendandahl authored and speedplane committed Feb 24, 2015
2 parents 050f8b4 + d872100 commit 6ee87b7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3184,7 +3184,8 @@ var Font = (function FontClosure() {
useTable = true;
// Continue the loop since there still may be a higher priority
// table.
} else if (platformId === 3 && encodingId === 1) {
} else if (platformId === 3 && encodingId === 1 &&
(!isSymbolicFont || !potentialTable)) {
useTable = true;
if (!isSymbolicFont) {
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 @@ -29,6 +29,7 @@
!scan-bad.pdf
!bug847420.pdf
!bug860632.pdf
!bug894572.pdf
!pdfjsbad1586.pdf
!freeculture.pdf
!pdfkit_compressed.pdf
Expand Down
Binary file added test/pdfs/bug894572.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 @@ -1106,6 +1106,13 @@
"lastPage": 1,
"type": "eq"
},
{ "id": "bug894572",
"file": "pdfs/bug894572.pdf",
"md5": "e54a6b0451939f685ed37e3d46e16158",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue1466",
"file": "pdfs/issue1466.pdf",
"md5": "8a8877432e5bb10cfd50d60488d947bb",
Expand Down

0 comments on commit 6ee87b7

Please sign in to comment.