Package arc.freetype

Class FreeTypeFontGenerator.FreeTypeFontData

All Implemented Interfaces:
Enclosing class:

public static class FreeTypeFontGenerator.FreeTypeFontData extends Font.FontData implements Disposable
Font.FontData used for fonts generated via the FreeTypeFontGenerator. The texture storing the glyphs is held in memory, thus the Font.FontData.getImagePaths() and Font.FontData.getFontFile() methods will return null.
  • Constructor Details

    • FreeTypeFontData

      public FreeTypeFontData()
  • Method Details

    • getGlyph

      public Font.Glyph getGlyph(char ch)
      Description copied from class: Font.FontData
      Returns the glyph for the specified character, or null if no such glyph exists. Note that Font.FontData.getGlyphs(GlyphRun, CharSequence, int, int, Glyph) should be be used to shape a string of characters into a list of glyphs.
      getGlyph in class Font.FontData
    • getGlyphs

      public void getGlyphs(GlyphLayout.GlyphRun run, CharSequence str, int start, int end, Font.Glyph lastGlyph)
      Description copied from class: Font.FontData
      Using the specified string, populates the glyphs and positions of the specified glyph run.
      getGlyphs in class Font.FontData
      str - Characters to convert to glyphs. Will not contain newline or color tags. May contain "[[" for an escaped left square bracket.
      lastGlyph - The glyph immediately before this run, or null if this is run is the first on a line of text.
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable