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).