mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Return ErrorFont in loadFont when the fontRef is undefined
This commit is contained in:
parent
da42fce118
commit
c0250e16e3
1 changed files with 5 additions and 0 deletions
|
@ -469,6 +469,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
return errorFont();
|
||||
}
|
||||
}
|
||||
if (!fontRef) {
|
||||
warn('fontRef not available');
|
||||
return errorFont();
|
||||
}
|
||||
|
||||
if (this.fontCache.has(fontRef)) {
|
||||
return this.fontCache.get(fontRef);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue