Font
Information about the font binding
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
Functions
drawString
Draws a string in the specified x and y values with the specified color
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 |
drawStringWithShadow
Draws a string with a shadow in the specified x and y values with the specified color
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 |
drawCenteredString
Draws a centered string in the specified x and y values with the specified color
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 |
getStringWidth
Returns a Number that is the string width based on the specified text
Parameter | Type | Description |
---|---|---|
text | String | Specified text to use to get the string width |
getHeight
Returns a Number based on the font's height
getMiddleOfBox
Returns a Number that should be the font's Y center of the height
getMinecraftFontRenderer
getTenacityFont14
getTenacityFont16
getTenacityFont18
getTenacityFont20
getTenacityFont22
getTenacityFont24
getTenacityFont26
getTenacityFont28
getTenacityFont32
getTenacityFont40
getTenacityFont80
Last updated