public interface FontRendererAPI
Keep in mind that the list of printable characters is very small for this font renderer, due to the small number of characters in the font sheet.
| Modifier and Type | Method and Description |
|---|---|
void |
drawString(java.lang.String string)
Render the specified string.
|
void |
drawString(java.lang.String string,
int maxChars)
Render up to the specified amount of characters of the specified string.
|
int |
getCharHeight()
Get the height of the characters drawn with the font renderer, in pixels.
|
int |
getCharWidth()
Get the width of the characters drawn with the font renderer, in pixels.
|
void drawString(java.lang.String string)
string - the string to render.void drawString(java.lang.String string,
int maxChars)
This is intended as a convenience method for clamped-width rendering, avoiding additional string operations such as substring.
string - the string to render.maxChars - the maximum number of characters to render.int getCharWidth()
int getCharHeight()