Package heronarts.glx.ui.text3d
Class FontMaker
java.lang.Object
heronarts.glx.ui.text3d.FontMaker
FontMaker - Texture Atlas Creation Tool
This is the simplest possible alpha-only texture atlas implementation. Very fast and lightweight, not a lot of features.
Converts Truetype fonts to bitmap fonts with glyph information for each character, for use by the heronarts.glx.shader.Text3d shader program
To use, just set the input and output filenames in main and run FontMaker from the IDE.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FontMaker
Create font atlas from TTF and write it to a file- Parameters:
inPath- input stream to truetype font fileoutPath- output stream to font atlas data filesize- Font size- Throws:
FontFormatException- if the font file doesn't contain the required font tablesIOException- if the file can't be read/written
-
-
Method Details
-
main
-