public class BitmapFontGlyphLayout extends com.badlogic.gdx.graphics.g2d.GlyphLayout implements FontGlyphLayout
| Constructor and Description |
|---|
BitmapFontGlyphLayout(LibgdxBitmapFont font) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of this instance
|
GameFont |
getFont()
Returns the
GameFont that this FontGlyphLayout was created from |
float |
getHeight()
Returns the total height of the text
|
float |
getWidth()
Returns the total width of the text
|
void |
setText(java.lang.CharSequence str)
Sets the text to compute the geometry for
|
void |
setText(java.lang.CharSequence str,
Color color,
float targetWidth,
int halign,
boolean wrap)
Sets the text to compute the geometry for
|
reset, setText, setText, setText, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitresetpublic BitmapFontGlyphLayout(LibgdxBitmapFont font)
public void setText(java.lang.CharSequence str)
FontGlyphLayoutsetText in interface FontGlyphLayoutstr - The text to compute the geometry forpublic void setText(java.lang.CharSequence str,
Color color,
float targetWidth,
int halign,
boolean wrap)
FontGlyphLayoutsetText in interface FontGlyphLayoutstr - The text to compute the geometry forcolor - The Color of the texthalign - The alignment based on Alignpublic void dispose()
FontGlyphLayoutdispose in interface FontGlyphLayoutpublic float getWidth()
FontGlyphLayoutgetWidth in interface FontGlyphLayoutpublic float getHeight()
FontGlyphLayoutgetHeight in interface FontGlyphLayoutpublic GameFont getFont()
FontGlyphLayoutGameFont that this FontGlyphLayout was created fromgetFont in interface FontGlyphLayout