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

nametypedescription
textstringThe 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

nametypedescription
typecustomfonttypeThe custom font type
sizefloatThe text size
textstringThe 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

nametypedescription
typecustomfonttypeThe custom font type
sizefloatThe text size
textstringThe text