mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Stop showing the fallback bar for "errorFontMissing" errors (PR 11218 follow-up)
*This is somewhat similar to PR 12931.* For PDF documents where fonts are completely missing in the /Resources dictionaries, there's basically no "correct" way of rendering the document. Hence it's very unlikely that another PDF viewer will do a better job than PDF.js in these cases, and consequently it seems highly questionable if the fallback bar really helps here.
This commit is contained in:
parent
b5735f2017
commit
9887644702
1 changed files with 1 additions and 0 deletions
|
@ -1082,6 +1082,7 @@ const PDFViewerApplication = {
|
||||||
// user-visible errors, to avoid bothering the user unnecessarily.
|
// user-visible errors, to avoid bothering the user unnecessarily.
|
||||||
switch (featureId) {
|
switch (featureId) {
|
||||||
case UNSUPPORTED_FEATURES.errorFontLoadNative:
|
case UNSUPPORTED_FEATURES.errorFontLoadNative:
|
||||||
|
case UNSUPPORTED_FEATURES.errorFontMissing:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Only trigger the fallback once so we don't spam the user with messages
|
// Only trigger the fallback once so we don't spam the user with messages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue