Skip to content

Commit

Permalink
Merge pull request #9958 from brendandahl/always-fallback
Browse files Browse the repository at this point in the history
Always fallback to system font on font failure.
  • Loading branch information
timvandermeij authored Aug 5, 2018
2 parents eec7e18 + 5f67a6a commit 4111871
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,6 @@ var Font = (function FontClosure() {
throw new FormatError(`Font ${type} is not supported`);
}
} catch (e) {
if (!(e instanceof FormatError)) {
throw e;
}
warn(e);
this.fallbackToSystemFont();
return;
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
!bug1068432.pdf
!bug1146106.pdf
!bug1252420.pdf
!issue9949.pdf
!bug1308536.pdf
!bug1337429.pdf
!issue5564_reduced.pdf
Expand Down
Binary file added test/pdfs/issue9949.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,12 @@
"annotations": true,
"about": "PDF with annotations, some of which have the Hidden flag set."
},
{ "id": "issue9949",
"file": "pdfs/issue9949.pdf",
"md5": "55d24d7fc71b849818ea91d3b9eaf302",
"rounds": 1,
"type": "eq"
},
{ "id": "issue4665-text",
"file": "pdfs/issue4665.pdf",
"md5": "0de1308432819c101881df7ca4424575",
Expand Down

0 comments on commit 4111871

Please sign in to comment.