Modifier and Type | Class and Description |
---|---|
static class |
BitmapFont.Align
Specifies horizontal alignment for text.
|
static class |
BitmapFont.VAlign
Specifies vertical alignment for text.
|
Constructor and Description |
---|
BitmapFont() |
Modifier and Type | Method and Description |
---|---|
BitmapText |
createLabel(java.lang.String content) |
float |
getCharacterAdvance(char curChar,
char nextChar,
float size) |
BitmapCharacterSet |
getCharSet() |
GlyphParser |
getGlyphParser() |
float |
getLineWidth(java.lang.CharSequence text) |
Material |
getPage(int index) |
int |
getPageSize() |
float |
getPreferredSize() |
boolean |
isRightToLeft() |
void |
merge(BitmapFont newFont)
Merge two fonts.
|
void |
read(JmeImporter im) |
void |
setCharSet(BitmapCharacterSet charSet) |
void |
setGlyphParser(GlyphParser glyphParser)
For cursive fonts a GlyphParser needs to be specified which is used
to determine glyph shape by the adjacent glyphs.
|
void |
setPages(Material[] pages) |
void |
setRightToLeft(boolean rightToLeft)
Specify if this is a right-to-left font.
|
void |
setStyle(int style) |
void |
write(JmeExporter ex) |
public boolean isRightToLeft()
public void setRightToLeft(boolean rightToLeft)
rightToLeft
- true → right-to-left, false → left-to-right
(default=false)public BitmapText createLabel(java.lang.String content)
public float getPreferredSize()
public void setCharSet(BitmapCharacterSet charSet)
public void setPages(Material[] pages)
public Material getPage(int index)
public int getPageSize()
public BitmapCharacterSet getCharSet()
public void setGlyphParser(GlyphParser glyphParser)
glyphParser
- the desired parser (alias created) or null for none
(default=null)public GlyphParser getGlyphParser()
public float getCharacterAdvance(char curChar, char nextChar, float size)
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
public float getLineWidth(java.lang.CharSequence text)
public void merge(BitmapFont newFont)
newFont
- Style must be assigned to this.
author: Yonghoonpublic void setStyle(int style)