Merge pull request #4910 from Snuffleupagus/issue-4909

Handle cases where the fontName contains non-alphanumeric characters (issue 4909)
This commit is contained in:
Yury Delendik 2014-06-10 15:21:40 -05:00
commit d487d4298c

View File

@ -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;
}
}