textmode.figlet.js / TextmodeFigFont
Class: TextmodeFigFont
Parsed FIGfont resource used by figText() rendering.
Extends
Disposable
Accessors
| Accessor | Description |
|---|---|
| name | The display name associated with this FIGfont. |
| header | The parsed FIGfont header metadata. |
| characters | Parsed FIGcharacters keyed by Unicode code point. |
| hardblank | Hardblank character declared by the font. |
| height | Number of rows in each FIGcharacter. |
| baseline | Baseline row declared by the font. |
| defaultLayout | Default horizontal layout implied by the header metadata. |
| defaultPrintDirection | Default print direction implied by the FIGfont header metadata. |
| defaultVerticalLayout | Default vertical layout implied by the FIGfont header metadata. |
Methods
| Method | Description |
|---|---|
| getCharacter | Look up a FIGcharacter by Unicode code point or by the first character in a string. |
| planText | Plan a string into positioned FIGlet cells and logical lines. |
| renderText | Render a string into a FIGlet sub-character grid. |
| measureText | Measure rendered FIGlet text without drawing it. |
| _addOnDispose | Register a callback to run when the resource is disposed. |
| dispose | Dispose the resource and invoke all registered callbacks. |