mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #9958 from brendandahl/always-fallback
Always fallback to system font on font failure.
This commit is contained in:
commit
4111871ac5
4 changed files with 4646 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue