Skip to content

textmode.figlet.js / TextmodeFigFont / getCharacter

Method: getCharacter()

ts
getCharacter(value): FigCharacter | undefined;

Look up a FIGcharacter by Unicode code point or by the first character in a string.

Parameters

ParameterTypeDescription
valuestring | numberUnicode code point or string to resolve.

Returns

FigCharacter | undefined

The matching FIGcharacter, if present.

Example