|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData
public static class BitmapFont.BitmapFontData
Field Summary | |
---|---|
float |
ascent
|
float |
capHeight
|
float |
descent
|
float |
down
|
boolean |
flipped
|
FileHandle |
fontFile
|
BitmapFont.Glyph[][] |
glyphs
|
String |
imagePath
Deprecated. use imagePaths[0] instead |
String[] |
imagePaths
An array of the image paths, i.e. |
float |
lineHeight
|
float |
scaleX
|
float |
scaleY
|
float |
spaceWidth
|
float |
xHeight
|
Constructor Summary | |
---|---|
BitmapFont.BitmapFontData()
Use this if you want to create BitmapFontData yourself, e.g. |
|
BitmapFont.BitmapFontData(FileHandle fontFile,
boolean flip)
|
Method Summary | |
---|---|
BitmapFont.Glyph |
getFirstGlyph()
|
FileHandle |
getFontFile()
|
BitmapFont.Glyph |
getGlyph(char ch)
|
String |
getImagePath()
Deprecated. use getImagePath(int index) instead |
String |
getImagePath(int index)
Returns the image path for the texture page at the given index. |
String[] |
getImagePaths()
|
void |
setGlyph(int ch,
BitmapFont.Glyph glyph)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@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
Constructor Detail |
---|
public BitmapFont.BitmapFontData()
public BitmapFont.BitmapFontData(FileHandle fontFile, boolean flip)
Method Detail |
---|
public void setGlyph(int ch, BitmapFont.Glyph glyph)
public BitmapFont.Glyph getFirstGlyph()
public BitmapFont.Glyph getGlyph(char ch)
@Deprecated public String getImagePath()
public String getImagePath(int index)
index
- the index of the page, AKA the "id" in the BMFont file
public String[] getImagePaths()
public FileHandle getFontFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |