Class BitmapFontSupport.JsonFontData

java.lang.Object
com.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData
com.github.tommyettinger.textra.BitmapFontSupport.JsonFontData
Enclosing class:
BitmapFontSupport

public static class BitmapFontSupport.JsonFontData extends com.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData
Mainly for internal use; allows loading BitmapFontData from a Structured JSON Font instead of a .fnt file.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class com.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData

    ascent, blankLineScale, breakChars, capChars, capHeight, cursorX, descent, down, flipped, fontFile, glyphs, imagePaths, lineHeight, markupEnabled, missingGlyph, name, padBottom, padLeft, padRight, padTop, scaleX, scaleY, spaceXadvance, xChars, xHeight
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    JsonFontData(com.badlogic.gdx.files.FileHandle jsonFont)
     
    JsonFontData(com.badlogic.gdx.files.FileHandle jsonFont, String imagePath)
     
    JsonFontData(com.badlogic.gdx.files.FileHandle jsonFont, String imagePath, boolean flip)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    load(com.badlogic.gdx.files.FileHandle jsonFont, boolean flip)
     

    Methods inherited from class com.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData

    getFirstGlyph, getFontFile, getGlyph, getGlyphs, getImagePath, getImagePaths, getWrapIndex, hasGlyph, isBreakChar, isWhitespace, scale, setGlyph, setGlyphRegion, setLineHeight, setScale, setScale, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • JsonFontData

      public JsonFontData()
    • JsonFontData

      public JsonFontData(com.badlogic.gdx.files.FileHandle jsonFont)
    • JsonFontData

      public JsonFontData(com.badlogic.gdx.files.FileHandle jsonFont, String imagePath)
    • JsonFontData

      public JsonFontData(com.badlogic.gdx.files.FileHandle jsonFont, String imagePath, boolean flip)
  • Method Details

    • load

      public void load(com.badlogic.gdx.files.FileHandle jsonFont, boolean flip)
      Overrides:
      load in class com.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData