From 60586e31016a2e8d694d47e5bcbbb80e0c1c1943 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Thu, 22 Aug 2013 12:55:43 -0700 Subject: [PATCH] Ensure there's data to build path. --- src/core/evaluator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 5956c540d..c099fe9d4 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -354,7 +354,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { var glyphs = font.charsToGlyphs(chars); var isAddToPathSet = !!(this.state.textRenderingMode & TextRenderingMode.ADD_TO_PATH_FLAG); - if (isAddToPathSet || PDFJS.disableFontFace) { + if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) { for (var i = 0; i < glyphs.length; i++) { if (glyphs[i] === null) { continue;