Browse Source

Return ErrorFont in loadFont when the fontRef is undefined

Jonas Jenwald 11 years ago
parent
commit
c0250e16e3
  1. 5
      src/core/evaluator.js

5
src/core/evaluator.js

@ -469,6 +469,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -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…
Cancel
Save