Font
Information about the font binding
Last updated
Information about the font binding
Last updated
The following functions allow you to get an AbstractFontRenderer object which allows for some more functions to be used
To make use of Bold fonts just use the minecraft formatting code for bold §l
See more about formatting codes here: formatting codes
Draws a string in the specified x and y values with the specified color
Parameter | Type | Description |
---|---|---|
Draws a string with a shadow in the specified x and y values with the specified color
Draws a centered string in the specified x and y values with the specified color
Returns a Number that is the string width based on the specified text
Returns a Number based on the font's height
Returns a Number that should be the font's Y center of the height
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
text
String
Text to draw
x
Number
X pos of the text
y
Number
Y pos of the text
color
Color of the text
text
String
Text to draw
x
Number
X pos of the text
y
Number
Y pos of the text
color
Color of the text
text
String
Text to draw
x
Number
X pos of the text
y
Number
Y pos of the text
color
Color of the text
text
String
Specified text to use to get the string width