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