{
// Stream validation should be done by the StreamValidateHelper. Process font specific check
COSStream stream = ff3.getStream();
if (stream == null)
{
this.fContainer.push(new ValidationError(ERROR_FONTS_FONT_FILEX_INVALID, "The FontFile is missing for "
+ fontDescriptor.getFontName()));
this.fContainer.notEmbedded();
}
else
{
// Length1/2/3 aren't mandatory for this type of font
// But the Subtype is a mandatory field with specific values
String st = stream.getNameAsString(COSName.SUBTYPE);
if (!(FONT_DICTIONARY_VALUE_TYPE0C.equals(st) || FONT_DICTIONARY_VALUE_TYPE1C.equals(st)))
{
this.fContainer.push(new ValidationError(ERROR_FONTS_FONT_FILEX_INVALID,
"The FontFile3 stream doesn't have the right Subtype for " + fontDescriptor.getFontName()));
}
checkCIDSet(fontDescriptor);
}