}else{
suffix = "";
}
//Check which factory to use for this file type
IFontFactory factoryToUse = this.getFactoryForFileSuffix(suffix);
//Create the font if we have a factory
if (factoryToUse != null){
System.out.println("Loading new font \"" + fontFileName + "\" with factory: " + factoryToUse.getClass().getName());
// loadedFont = factoryToUse.createFont(pa, fontAbsoultePath, fontSize, fillColor, strokeColor);
loadedFont = factoryToUse.createFont(pa, fontAbsoultePath, fontSize, fillColor, strokeColor, antiAliased);
fonts.add(loadedFont);
if (fonts.size() > CACHE_MAX_SIZE && !fonts.isEmpty()){
IFont removedFont = fonts.remove(0); //FIXME destroy font, too!
if (removedFont != null){
removedFont.destroy();