Browse Source

Merge pull request #2879 from vyv03354/type3

Skip FontName vs. BaseFont check for Type 3 fonts
Yury Delendik 12 years ago
parent
commit
ff3a6fab6f
  1. 2
      src/evaluator.js

2
src/evaluator.js

@ -1235,6 +1235,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -1235,6 +1235,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
baseFont = new Name(baseFont);
}
if (type.name !== 'Type3') {
var fontNameStr = fontName && fontName.name;
var baseFontStr = baseFont && baseFont.name;
if (fontNameStr !== baseFontStr) {
@ -1242,6 +1243,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -1242,6 +1243,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
'" but should be the same as the Font\'s BaseFont "' +
baseFontStr + '"');
}
}
fontName = fontName || baseFont;
assertWellFormed(isName(fontName), 'invalid font name');

Loading…
Cancel
Save