if (!(encodingName.equals(FONT_DICTIONARY_VALUE_ENCODING_MAC)
|| encodingName.equals(FONT_DICTIONARY_VALUE_ENCODING_MAC_EXP)
|| encodingName.equals(FONT_DICTIONARY_VALUE_ENCODING_WIN)
|| encodingName.equals(FONT_DICTIONARY_VALUE_ENCODING_PDFDOC) || encodingName
.equals(FONT_DICTIONARY_VALUE_ENCODING_STD))) {
this.fontContainer.addError(new ValidationError(ERROR_FONTS_ENCODING));
return false;
}
} else if (COSUtils.isDictionary(this.encoding, cDoc)) {
this.pFont.getFontEncoding();
} else if (this.encoding != null) {
this.fontContainer.addError(new ValidationError(ERROR_FONTS_ENCODING));
return false;
}
//else
// ---- According to PDF Reference, the encoding entry is optional.
// PDF/A specification only speaks of TrueType encoding