Skip to content

Function: layoutGuiText() ​

ts
function layoutGuiText(text, options?): Promise<GuiTextLayout>;

Defined in: packages/minerender/src/gui/GuiText.ts:53

Measures and wraps text using the same glyph advances used for rendering.

Parameters ​

ParameterType
textGuiText
optionsGuiTextOptions

Returns ​

Promise<GuiTextLayout>