Distribute Fonts, how?

I am using Haettenschweiler for my Java Game and some ppl do not have it installed on their computers, hence it is no standard font. Is there a way (what about copyright) to distribute a font with my java game?

Is there a way to check whether a certain font exist on the machine so that I can pick a reserve font to use? I notice this already happens but I want to be able to select what font i want to use.

bsh % Font font=new Font(“bleargh”,Font.PLAIN,12); //obviously doesn’t exist
bsh % print(font.getFontName());
Dialog.plain
bsh % Font font=new Font(“courier new”,Font.PLAIN,12);
bsh % print(font.getFontName());
Courier New


TTF files are usually copyrighted. There is a shell extension for win32 for looking that info up. Licensing a professional font (for redistribution) is usually very expensive. Most people dodge that by using textures instead. If you’re using some opensource font, read the license carefully.

If you include the TTF file you can use it with that via Font.createFont(int fontFormat, InputStream fontStream).