TrueTypeFont ttf = null;
try {
// ---- According to PDF Reference, CIDFontType2 is a TrueType font.
// ---- Remark : Java.awt.Font throws exception when a CIDFontType2 is
// parsed even if it is valid.
ttf = new CIDFontType2Parser(true).parseTTF(new ByteArrayInputStream(ff2.getByteArray()));
} catch (Exception e) {
// ---- Exceptionally, Exception is catched Here because of damaged font
// can throw NullPointer Exception...
this.fontContainer.addError(new ValidationResult.ValidationError(
ERROR_FONTS_CID_DAMAGED, "The FontFile can't be read"));