Skip to content

textmode.figlet.js / TextmodifierFigletExtensions / figFont

Method: figFont() ​

Call Signature ​

ts
figFont(): TextmodeFigFont | undefined;

Get the active FIGlet font used by figText().

Returns ​

TextmodeFigFont | undefined

The currently active FIGlet font, if any.

Example ​

Call Signature ​

ts
figFont(font): void;

Set the active FIGlet font used by figText().

Parameters ​

ParameterTypeDescription
fontTextmodeFigFontThe FIGlet font to use for subsequent text rendering.

Returns ​

void