font
Contains several functions to receive height and width boundaries of text
minecraft_width()
Returns the width for the given text when rendered with minecraft font
minecraft_width(text: string): float
Parameters
name | type | description |
---|---|---|
text | string | The text |
minecraft_height()
Returns the height of the minecraft font
minecraft_height(): float
This method does not have any parameters
width()
Returns the width for the given text when rendered with the given font and size
width(type: customfonttype, size: float, text: string): float
Parameters
name | type | description |
---|---|---|
type | customfonttype | The custom font type |
size | float | The text size |
text | string | The text |
height()
Returns the height for the given text when rendered with the given font and size
height(type: customfonttype, size: float, text: string): float
Parameters
name | type | description |
---|---|---|
type | customfonttype | The custom font type |
size | float | The text size |
text | string | The text |