Could this be because of the ColorEffect I’m applying to the UnicodeFont?
My code:
public static UnicodeFont deriveUnicodeFont(String name, int size)
throws SlickException
{
try
{
java.awt.Font original = java.awt.Font.createFont(
java.awt.Font.PLAIN, new File("./cache/fonts/" + name
+ ".ttf"));
UnicodeFont derived = new UnicodeFont(original, size, false, false);
derived.getEffects().add(new ColorEffect(java.awt.Color.white));
derived.addAsciiGlyphs();
derived.loadGlyphs();
return derived;
}
catch (FontFormatException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
return null;
}
Or does it have something to do with how Slick creates the Image for each character? Thanks for your help in advance!