Merge pull request #9958 from brendandahl/always-fallback
Always fallback to system font on font failure.
This commit is contained in:
commit
4111871ac5
@ -599,9 +599,6 @@ var Font = (function FontClosure() {
|
|||||||
throw new FormatError(`Font ${type} is not supported`);
|
throw new FormatError(`Font ${type} is not supported`);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!(e instanceof FormatError)) {
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
warn(e);
|
warn(e);
|
||||||
this.fallbackToSystemFont();
|
this.fallbackToSystemFont();
|
||||||
return;
|
return;
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -88,6 +88,7 @@
|
|||||||
!bug1068432.pdf
|
!bug1068432.pdf
|
||||||
!bug1146106.pdf
|
!bug1146106.pdf
|
||||||
!bug1252420.pdf
|
!bug1252420.pdf
|
||||||
|
!issue9949.pdf
|
||||||
!bug1308536.pdf
|
!bug1308536.pdf
|
||||||
!bug1337429.pdf
|
!bug1337429.pdf
|
||||||
!issue5564_reduced.pdf
|
!issue5564_reduced.pdf
|
||||||
|
4639
test/pdfs/issue9949.pdf
Normal file
4639
test/pdfs/issue9949.pdf
Normal file
File diff suppressed because one or more lines are too long
@ -578,6 +578,12 @@
|
|||||||
"annotations": true,
|
"annotations": true,
|
||||||
"about": "PDF with annotations, some of which have the Hidden flag set."
|
"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",
|
{ "id": "issue4665-text",
|
||||||
"file": "pdfs/issue4665.pdf",
|
"file": "pdfs/issue4665.pdf",
|
||||||
"md5": "0de1308432819c101881df7ca4424575",
|
"md5": "0de1308432819c101881df7ca4424575",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user