Skip to content

textmode.figlet.js / TextmodifierFigletExtensions / figTextBounds

Method: figTextBounds()

ts
figTextBounds(text, options?): object;

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

Parameters

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

Returns

object

Width and height in grid cells.

NameType
colsnumber
rowsnumber

Example