Skip to content

textmode.figlet.js / TextmodeFigFont

Class: TextmodeFigFont

Parsed FIGfont resource used by figText() rendering.

Extends

  • Disposable

Accessors

AccessorDescription
baselineBaseline row declared by the font.
charactersParsed FIGcharacters keyed by Unicode code point.
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.
hardblankHardblank character declared by the font.
headerThe parsed FIGfont header metadata.
heightNumber of rows in each FIGcharacter.
nameThe display name associated with this FIGfont.

Methods

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