Merge pull request #4922 from Snuffleupagus/undefined-fontRef
Return ErrorFont in loadFont when the fontRef is undefined
This commit is contained in:
commit
75859b8d89
@ -469,6 +469,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
return errorFont();
|
return errorFont();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!fontRef) {
|
||||||
|
warn('fontRef not available');
|
||||||
|
return errorFont();
|
||||||
|
}
|
||||||
|
|
||||||
if (this.fontCache.has(fontRef)) {
|
if (this.fontCache.has(fontRef)) {
|
||||||
return this.fontCache.get(fontRef);
|
return this.fontCache.get(fontRef);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user