I have some ttf fonts installed on the system.
I get this list using
GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()
These are not only ttf fonts, but all the fonts I assume. In the end, if I use:
Font.decode(fontName)
I can get an awt.Font instance.
As far as I know, Font is not related to the actual PhysicalFont, so how can I get either a ttf font file or byte data from this ttf file for a font from this list or from awt.Font? I am trying to get physical font data or something like that. Should this data be somewhere to the right?
The reason I need this is to ultimately use FreeTypeFontGenerator with libGDX to generate BitmapFont
This should work on windows, osx and linux.
java fonts true-type-fonts libgdx
Avetis zakharyan
source share