isDamaged = fontIsDamaged;
}
else
{
// substitute
CFFCIDFont cidSub = ExternalFonts.getCFFCIDFont(getBaseFont());
if (cidSub != null)
{
cidFont = cidSub;
t1Font = null;
}
else
{
COSDictionary cidSystemInfo = (COSDictionary)
dict.getDictionaryObject(COSName.CIDSYSTEMINFO);
String registryOrdering = null;
if (cidSystemInfo != null)
{
String registry = cidSystemInfo.getNameAsString(COSName.REGISTRY);
String ordering = cidSystemInfo.getNameAsString(COSName.ORDERING);
if (registry != null && ordering != null)
{
registryOrdering = registry + "-" + ordering;
}
}
cidSub = ExternalFonts.getCFFCIDFontFallback(registryOrdering, getFontDescriptor());
cidFont = cidSub;
t1Font = null;
if (cidSub.getName().equals("AdobeBlank"))
{
// this error often indicates that the user needs to install the Adobe Reader
// Asian and Extended Language Pack
LOG.error("Missing CID-keyed font " + getBaseFont());
}