//Log.warn ("TrueTypeFontKey : " + fontKey + " Font: " + font.isItalic() + " Encoding: "
// + encoding);
final String rawFilename;
if (fontRecord instanceof TrueTypeFontRecord)
{
final TrueTypeFontRecord ttfRecord = (TrueTypeFontRecord) fontRecord;
if (ttfRecord.getCollectionIndex() >= 0)
{
rawFilename = ttfRecord.getFontSource() + ',' + ttfRecord.getCollectionIndex();
}
else
{
rawFilename = ttfRecord.getFontSource();
}
}
else if (fontRecord instanceof FontSource)
{
final FontSource source = (FontSource) fontRecord;