Update font name matching for Type 0 CIDFont

This commit is contained in:
vyv03354 2013-01-24 08:03:13 +09:00
parent a0313bef22
commit 622276ecc8

View File

@ -1213,6 +1213,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
var fontNameStr = fontName && fontName.name;
// 9.7.6.1
if (type.name == 'CIDFontType0') {
var cidEncoding = baseDict.get('Encoding');
if (isName(cidEncoding)) {
fontNameStr = fontNameStr + '-' + cidEncoding.name;
}
}
var baseFontStr = baseFont && baseFont.name;
if (fontNameStr !== baseFontStr) {
warn('The FontDescriptor\'s FontName is "' + fontNameStr +