TrueType-fonts in my game does’nt get loaded in M$ Windows, but the same code is working great in Linux and OS X.
Only if i install the font in windows does it work, how come? Weird if the users have to install the font themself just to get your application working, it can’t be that stupid, i must do SOMETHING wrong!
Sample-code:
Font tmpFont = Font.createFont(Font.TRUETYPE_FONT, new BufferedInputStream(this.getClass().getClassLoader().getResourceAsStream(GAMECONSTANTS.GAME_FONT)));
mFont = new Font(tmpFont.getName(), tmpFont.getStyle(), FONTSIZE);
oh, it’s a Java Webstart game if it matters.
Thanks!
// Henrik