I having trouble displaying custom TTF-fonts in Windows. Here is the code i'm using to load a font that is bundled with my application:
Font tmpFont = Font.createFont(Font.TRUETYPE_FONT, new BufferedInputStream(this.getClass().getClassLoader().getResourceAsStream(GAME_FONT)));
mFont = new Font(tmpFont.getName(), tmpFont.getStyle(), FONTSIZE);
Instead of showing my TrueType-font Windows use some kind of standard font. The same application is working great in Linux and MacOS X! If i install the font in Window, then the font get shown, but surly should you be able to load a font from file without installing it? Right?