final TTFFont[] ttfFonts = fontFile.getTTFFonts();
if (ttfFonts == null) {
return;
}
for (int i = 0; i < ttfFonts.length; i++) {
final TTFFont ttfFont = ttfFonts[i];
final ConfiguredFont configFile = new ConfiguredFont();
final String fontName = ttfFont.getPostscriptName();
configFile.setPostScriptName(fontName);
configFile.setFamilyName(ttfFont.getFamilyName());
configFile.setFontUrl(file.getAbsolutePath());
configFile.setStyle(getStyle(fontName));
configFile.setWeight(getWeight(fontName));
this.fontFiles.add(configFile);
}