Skip to content

textmode.js / fonts / TextmodeFont

Class: TextmodeFont

Vector font glyph source for textmode rendering.

Fonts are loaded from TrueType/OpenType/WOFF data, converted into a normalized glyph atlas, and used by layering.TextmodeLayer during the ASCII resolve pass.

Example

Extends

  • Disposable

Accessors

AccessorDescription
characterMapCharacter-to-glyph lookup map.
charactersUnicode glyphs available in this font.
fontImplementation-specific parsed font data.
fontSizeFont size used for the glyph atlas.
framebufferNormalized glyph atlas framebuffer used by the ASCII shader.
maxGlyphDimensionsMaximum glyph cell dimensions in pixels.
textureColumnsNumber of columns in the glyph atlas.
textureRowsNumber of rows in the glyph atlas.

Methods

MethodDescription
disposeDispose of all resources used by this font manager.