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() |
float |
getLineHeight(com.jme3.font.StringBlock sb)
Gets the line height of a StringBlock.
|
float |
getLineWidth(java.lang.CharSequence text) |
Material |
getPage(int index) |
int |
getPageSize() |
float |
getPreferredSize() |
void |
merge(BitmapFont newFont)
Merge two fonts.
|
void |
read(JmeImporter im) |
void |
setCharSet(BitmapCharacterSet charSet) |
void |
setPages(Material[] pages) |
void |
setStyle(int style) |
void |
write(JmeExporter ex) |
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 float getLineHeight(com.jme3.font.StringBlock sb)
sb
- 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)