@Environment(value=CLIENT)
public interface FontRenderer
| Modifier and Type | Method and Description |
|---|---|
void |
drawString(java.lang.CharSequence value)
Render the specified string.
|
void |
drawString(java.lang.CharSequence value,
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.CharSequence value)
value - the string to render.void drawString(java.lang.CharSequence value,
int maxChars)
This is intended as a convenience method for clamped-width rendering, avoiding additional string operations such as substring.
value - the string to render.maxChars - the maximum number of characters to render.int getCharWidth()
int getCharHeight()