Merge pull request #2879 from vyv03354/type3
Skip FontName vs. BaseFont check for Type 3 fonts
This commit is contained in:
commit
ff3a6fab6f
@ -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() {
|
||||
'" but should be the same as the Font\'s BaseFont "' +
|
||||
baseFontStr + '"');
|
||||
}
|
||||
}
|
||||
fontName = fontName || baseFont;
|
||||
|
||||
assertWellFormed(isName(fontName), 'invalid font name');
|
||||
|
Loading…
x
Reference in New Issue
Block a user