f = BaseFont.createFont(filename, stringEncoding, embedded, false, null, null);
}
}
catch (IOException ioe)
{
throw new DocumentException("Failed to read the font: " + ioe);
}
// no, we have to create a new instance
final BaseFontRecord record = new BaseFontRecord
(filename, true, embedded, f, fontRecord.isBold(), fontRecord.isItalic());