public interface RenderFont
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
This RenderFont is not needed anymore.
|
int |
getCharacterAdvance(char currentCharacter,
char nextCharacter,
float size)
Return the advance of the given character including kerning information.
|
int |
getHeight()
The height of the font in pixel.
|
int |
getWidth(String text)
Get width in pixel of given text.
|
int |
getWidth(String text,
float size)
Get width in pixel of given text.
|
int getWidth(String text)
text - the text to measure.int getWidth(String text, float size)
text - the text to measure.size - sizeint getHeight()
int getCharacterAdvance(char currentCharacter,
char nextCharacter,
float size)
currentCharacter - current characternextCharacter - next charactersize - font sizevoid dispose()
Copyright © 2013. All Rights Reserved.