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
| Parameter | Type | Description |
|---|---|---|
font | TextmodeFigFont | The FIGlet font to use for subsequent text rendering. |
Returns
void