textmode.figlet.js / TextmodifierFigletExtensions / figTextBounds
Method: figTextBounds()
ts
figTextBounds(text, options?): object;Measure the rendered bounds of a FIGlet string in grid cells.
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | The text to measure. |
options? | FigTextOptions | Optional layout overrides. |
Returns
object
Width and height in grid cells.
| Name | Type |
|---|---|
cols | number |
rows | number |