public interface BitmapFont
| Modifier and Type | Method and Description |
|---|---|
int |
getCharacterWidth(char currentCharacter,
char nextCharacter)
Get the width of a single character.
|
int |
getCharacterWidth(char currentCharacter,
char nextCharacter,
float size)
The same as the getCharacterWidth(int, char) method but takes a scaled size into account.
|
int |
getHeight()
The height of the given font (the lineHeight property of the font data)
|
int |
getStringWidth(String text)
Returns the width of the given String.
|
int |
getStringWidth(String text,
float size)
The same as the getStringWidthInternal(String) method that takes the given size into account.
|
void |
renderText(int x,
int y,
String text)
Output text at the given x and y positon.
|
void |
renderText(int x,
int y,
String text,
float sizeX,
float sizeY,
float r,
float g,
float b,
float a)
Output text at the given x and y position using the given color and the r,g,b,a components.
|
void renderText(int x,
int y,
String text)
x - x positiony - y positiontext - text to outputvoid renderText(int x,
int y,
String text,
float sizeX,
float sizeY,
float r,
float g,
float b,
float a)
x - x positiony - y positiontext - the text to outputsizeX - x scale factor of the text (this should be apply with x,y as the origin)sizeY - y scale factor of the text (this should be apply with x,y as the origin)r - redg - greenb - bluea - alphaint getCharacterWidth(char currentCharacter,
char nextCharacter)
currentCharacter - current characternextCharacter - next characterint getCharacterWidth(char currentCharacter,
char nextCharacter,
float size)
int getStringWidth(String text)
text - the textint getStringWidth(String text, float size)
int getHeight()
Copyright © 2013. All Rights Reserved.