if (AbstractFontValidator.isSubSet(fontName)) {
noSubSetName = fontName.split(AbstractFontValidator
.getSubSetPatternDelimiter())[1];
}
DublinCoreSchema dc = metadata.getDublinCoreSchema();
if (dc != null) {
if (dc.getTitle() != null) {
String defaultTitle = dc.getTitleValue("x-default");
if (defaultTitle != null) {
if (!defaultTitle.equals(fontName)
&& (noSubSetName != null && !defaultTitle.equals(noSubSetName))) {
StringBuilder sb = new StringBuilder(80);
sb
.append("FontName")
.append(
" present in the FontDescriptor dictionary doesn't match with XMP information dc:title of the Font File Stream.");
ve.add(new ValidationError(
ValidationConstants.ERROR_METADATA_MISMATCH, sb.toString()));
return false;
}
// --- default value is the right one
return true;
} else {
Iterator<AbstractField> it = dc.getTitle().getContainer()
.getAllProperties().iterator();
boolean empty = true;
while (it.hasNext()) {
empty = false;
AbstractField tmp = it.next();