How to get ttf font data from system fonts in java -
i have ttf fonts installed on system.
i list using
graphicsenvironment.getlocalgraphicsenvironment().getavailablefontfamilynames()
this not ttf fonts fonts guess. if use:
font.decode(fontname)
i can awt.font instance.
as far know font not connected actual physicalfont, how can retrieve either ttf font file, or byte data ttf file font list or awt.font ? trying retrieve physical font data or similar. data should somewhere right?
the reason need use libgdx freetypefontgenerator in order generate bitmapfont
this has work on windows, osx , linux.
it isn't possible. best can using reflection, work oracle jre , accesses private api may break new oracle release.
you write native lib enumerate fonts , files.
Comments
Post a Comment