Skip to content

textmode.figlet.js / TextmodeFigFont

Class: TextmodeFigFont

Parsed FIGfont resource used by figText() rendering.

Extends

  • Disposable

Accessors

AccessorDescription
nameThe display name associated with this FIGfont.
headerThe parsed FIGfont header metadata.
charactersParsed FIGcharacters keyed by Unicode code point.
hardblankHardblank character declared by the font.
heightNumber of rows in each FIGcharacter.
baselineBaseline row declared by the font.
defaultLayoutDefault horizontal layout implied by the header metadata.
defaultPrintDirectionDefault print direction implied by the FIGfont header metadata.
defaultVerticalLayoutDefault vertical layout implied by the FIGfont header metadata.

Methods

MethodDescription
getCharacterLook up a FIGcharacter by Unicode code point or by the first character in a string.
planTextPlan a string into positioned FIGlet cells and logical lines.
renderTextRender a string into a FIGlet sub-character grid.
measureTextMeasure rendered FIGlet text without drawing it.
_addOnDisposeRegister a callback to run when the resource is disposed.
disposeDispose the resource and invoke all registered callbacks.