public static class BitmapFont.BitmapFontData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
ascent |
float |
capHeight |
float |
descent |
float |
down |
boolean |
flipped |
FileHandle |
fontFile |
BitmapFont.Glyph[][] |
glyphs |
java.lang.String |
imagePath
Deprecated.
use imagePaths[0] instead
|
java.lang.String[] |
imagePaths
An array of the image paths, i.e.
|
float |
lineHeight |
float |
scaleX |
float |
scaleY |
float |
spaceWidth |
float |
xHeight |
Constructor and Description |
---|
BitmapFont.BitmapFontData()
Use this if you want to create BitmapFontData yourself, e.g.
|
BitmapFont.BitmapFontData(FileHandle fontFile,
boolean flip) |
Modifier and Type | Method and Description |
---|---|
BitmapFont.Glyph |
getFirstGlyph() |
FileHandle |
getFontFile() |
BitmapFont.Glyph |
getGlyph(char ch) |
java.lang.String |
getImagePath()
Deprecated.
use getImagePath(int index) instead
|
java.lang.String |
getImagePath(int index)
Returns the image path for the texture page at the given index.
|
java.lang.String[] |
getImagePaths() |
void |
setGlyph(int ch,
BitmapFont.Glyph glyph) |
@Deprecated public java.lang.String imagePath
public java.lang.String[] imagePaths
public FileHandle fontFile
public boolean flipped
public float lineHeight
public float capHeight
public float ascent
public float descent
public float down
public float scaleX
public float scaleY
public final BitmapFont.Glyph[][] glyphs
public float spaceWidth
public float xHeight
public BitmapFont.BitmapFontData()
public BitmapFont.BitmapFontData(FileHandle fontFile, boolean flip)
public void setGlyph(int ch, BitmapFont.Glyph glyph)
public BitmapFont.Glyph getFirstGlyph()
public BitmapFont.Glyph getGlyph(char ch)
@Deprecated public java.lang.String getImagePath()
public java.lang.String getImagePath(int index)
index
- the index of the page, AKA the "id" in the BMFont filepublic java.lang.String[] getImagePaths()
public FileHandle getFontFile()