diff --git a/src/core/fonts.js b/src/core/fonts.js index a56797534..1d23a8a00 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -3675,9 +3675,11 @@ var Font = (function FontClosure() { } --ifLevel; } else if (op === 0x1C) { // JMPR - var offset = stack[stack.length - 1]; - // only jumping forward to prevent infinite loop - if (offset > 0) { i += offset - 1; } + if (!inFDEF && !inELSE) { + var offset = stack[stack.length - 1]; + // only jumping forward to prevent infinite loop + if (offset > 0) { i += offset - 1; } + } } // Adjusting stack not extactly, but just enough to get function id if (!inFDEF && !inELSE) {