mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ensure there's data to build path.
This commit is contained in:
parent
bb2529de03
commit
60586e3101
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue