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
| Parameter | Type |
|---|---|
text | GuiText |
options | GuiTextOptions |
Returns
Promise<GuiTextLayout>