Skip to content

textmode.figlet.js / TextmodifierFigletExtensions / figTextWidth

Method: figTextWidth() ​

ts
figTextWidth(text, options?): number;

Measure the rendered width of a FIGlet string in grid cells.

Parameters ​

ParameterTypeDescription
textstringThe text to measure.
options?FigTextOptionsOptional layout overrides.

Returns ​

number

Width in grid cells.

Example ​