Skip FontName vs. BaseFont check for Type 3 fonts
Type 3 font dict does not have a BaseFont entry (see PDF Reference 9.6.5 Table 112). This check is actually causing false positives: http://math.berkeley.edu/~daisuke/Bonn2013.pdf http://math.berkeley.edu/~daisuke/BVSOL.pdf http://www.ieice-hbkb.org/files/06/06gun_02hen_04.pdf http://www.asahi-net.or.jp/~td6i-st/fuku-cathedral/new/gat.pdf
This commit is contained in:
parent
233308e9eb
commit
999cac517a
@ -1235,12 +1235,14 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
baseFont = new Name(baseFont);
|
baseFont = new Name(baseFont);
|
||||||
}
|
}
|
||||||
|
|
||||||
var fontNameStr = fontName && fontName.name;
|
if (type.name !== 'Type3') {
|
||||||
var baseFontStr = baseFont && baseFont.name;
|
var fontNameStr = fontName && fontName.name;
|
||||||
if (fontNameStr !== baseFontStr) {
|
var baseFontStr = baseFont && baseFont.name;
|
||||||
warn('The FontDescriptor\'s FontName is "' + fontNameStr +
|
if (fontNameStr !== baseFontStr) {
|
||||||
'" but should be the same as the Font\'s BaseFont "' +
|
warn('The FontDescriptor\'s FontName is "' + fontNameStr +
|
||||||
baseFontStr + '"');
|
'" but should be the same as the Font\'s BaseFont "' +
|
||||||
|
baseFontStr + '"');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fontName = fontName || baseFont;
|
fontName = fontName || baseFont;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user