diff --git a/src/core/evaluator.js b/src/core/evaluator.js index d8ce942d7..e049333cb 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -1219,6 +1219,12 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { info('The FontDescriptor\'s FontName is "' + fontNameStr + '" but should be the same as the Font\'s BaseFont "' + baseFontStr + '"'); + // 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) { + fontName = baseFont; + } } } fontName = (fontName || baseFont);