Could this be because of the ColorEffect I'm applying to the UnicodeFont?
My code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| 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!