}
writeFont(font.getFontDescriptor(), name);
}
else if (font instanceof PDType0Font)
{
PDCIDFont descendantFont = ((PDType0Font) font).getDescendantFont();
if (descendantFont instanceof PDCIDFontType2)
{
String name = null;
if (addKey)
{
name = getUniqueFileName(prefix + "_" + key, "ttf");
}
else
{
name = getUniqueFileName(prefix, "ttf");
}
writeFont(descendantFont.getFontDescriptor(), name);
}
}
}
for (COSName name : resources.getXObjectNames())