Ensure there's data to build path.
This commit is contained in:
parent
bb2529de03
commit
60586e3101
@ -354,7 +354,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
var glyphs = font.charsToGlyphs(chars);
|
var glyphs = font.charsToGlyphs(chars);
|
||||||
var isAddToPathSet = !!(this.state.textRenderingMode &
|
var isAddToPathSet = !!(this.state.textRenderingMode &
|
||||||
TextRenderingMode.ADD_TO_PATH_FLAG);
|
TextRenderingMode.ADD_TO_PATH_FLAG);
|
||||||
if (isAddToPathSet || PDFJS.disableFontFace) {
|
if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
|
||||||
for (var i = 0; i < glyphs.length; i++) {
|
for (var i = 0; i < glyphs.length; i++) {
|
||||||
if (glyphs[i] === null) {
|
if (glyphs[i] === null) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user