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] instead
|
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)
Returns the glyph for the specified character, or null if no such glyph exists.
|
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) |
@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()
public String getImagePath(int index)
index
- the index of the page, AKA the "id" in the BMFont filepublic String[] getImagePaths()
public FileHandle getFontFile()
Copyright © 2014. All rights reserved.