public class TextRenderer.RenderFontNull extends Object implements RenderFont
| Constructor and Description |
|---|
TextRenderer.RenderFontNull() |
| 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 scale)
Get width in pixel of given text.
|
void |
render(String text,
int x,
int y,
Color fontColor,
float size) |
public int getHeight()
RenderFontgetHeight in interface RenderFontpublic int getWidth(String text)
RenderFontgetWidth in interface RenderFonttext - the text to measure.public int getWidth(String text, float scale)
RenderFontgetWidth in interface RenderFonttext - the text to measure.scale - sizepublic int getCharacterAdvance(char currentCharacter,
char nextCharacter,
float size)
RenderFontgetCharacterAdvance in interface RenderFontcurrentCharacter - current characternextCharacter - next charactersize - font sizepublic void dispose()
RenderFontdispose in interface RenderFontCopyright © 2013. All Rights Reserved.