Merge pull request #9958 from brendandahl/always-fallback

Always fallback to system font on font failure.
This commit is contained in:
Tim van der Meij 2018-08-05 19:58:48 +02:00 committed by GitHub
commit 4111871ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4646 additions and 3 deletions

View File

@ -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;

View File

@ -88,6 +88,7 @@
!bug1068432.pdf
!bug1146106.pdf
!bug1252420.pdf
!issue9949.pdf
!bug1308536.pdf
!bug1337429.pdf
!issue5564_reduced.pdf

4639
test/pdfs/issue9949.pdf Normal file

File diff suppressed because one or more lines are too long

View File

@ -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",