Browse Source

Handle cases where the fontName contains non-alphanumeric characters (issue 4909)

Jonas Jenwald 11 years ago
parent
commit
7802a7ab97
  1. 2
      src/core/evaluator.js

2
src/core/evaluator.js

@ -1622,7 +1622,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -1622,7 +1622,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// Workaround for cases where e.g. fontNameStr = 'Arial' and
// baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
if (fontNameStr && baseFontStr &&
baseFontStr.search(fontNameStr) === 0) {
baseFontStr.indexOf(fontNameStr) === 0) {
fontName = baseFont;
}
}

Loading…
Cancel
Save