Package com.github.tommyettinger.textra
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 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
ConstructorDescriptionJsonFontData
(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 TypeMethodDescriptionvoid
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
-
Field Details
-
path
-
-
Constructor Details
-
JsonFontData
public JsonFontData() -
JsonFontData
public JsonFontData(com.badlogic.gdx.files.FileHandle jsonFont) -
JsonFontData
-
JsonFontData
-
-
Method Details
-
load
public void load(com.badlogic.gdx.files.FileHandle jsonFont, boolean flip) - Overrides:
load
in classcom.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData
-