Skip to content

textmode.figlet.js / TextmodifierFigletExtensions / figTextHeight

Method: figTextHeight()

ts
figTextHeight(text, options?): number;

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

Parameters

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

Returns

number

Height in grid cells.

Example