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.
|
Integer |
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.
|
void |
render(String text,
int x,
int y,
Color fontColor,
float size) |
public int getHeight()
RenderFont
getHeight
in interface RenderFont
public int getWidth(String text)
RenderFont
getWidth
in interface RenderFont
text
- the text to measure.public Integer getCharacterAdvance(char currentCharacter, char nextCharacter, float size)
RenderFont
getCharacterAdvance
in interface RenderFont
currentCharacter
- current characternextCharacter
- next charactersize
- font sizepublic void dispose()
RenderFont
dispose
in interface RenderFont
Copyright © 2013. All Rights Reserved.