Class FontMaker

java.lang.Object
heronarts.glx.ui.text3d.FontMaker

public class FontMaker extends Object
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 Details

    • FontMaker

      public FontMaker(String inPath, String outPath, int size) throws FontFormatException, IOException
      Create font atlas from TTF and write it to a file
      Parameters:
      inPath - input stream to truetype font file
      outPath - output stream to font atlas data file
      size - Font size
      Throws:
      FontFormatException - if the font file doesn't contain the required font tables
      IOException - if the file can't be read/written
  • Method Details

    • main

      public static void main(String[] args)