public static class BitmapFont.BitmapFontData extends Object
BitmapFont
.Modifier and Type | Field and Description |
---|---|
float |
ascent |
float |
capHeight |
float |
descent |
float |
down |
boolean |
flipped |
FileHandle |
fontFile |
BitmapFont.Glyph[][] |
glyphs |
String |
imagePath
Deprecated.
Use imagePaths[0].
|
String[] |
imagePaths
An array of the image paths, for multiple texture pages.
|
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)
Returns the glyph for the specified character, or null if no such glyph exists.
|
String |
getImagePath()
Deprecated.
Use
getImagePath(int) . |
String |
getImagePath(int index)
Returns the image path for the texture page at the given index (the "id" in the BMFont file).
|
String[] |
getImagePaths() |
void |
setGlyph(int ch,
BitmapFont.Glyph glyph) |
@Deprecated public String imagePath
public 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 String getImagePath()
getImagePath(int)
.public String getImagePath(int index)
public String[] getImagePaths()
public FileHandle getFontFile()
Copyright © 2014. All rights reserved.