1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

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;