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
| Accessor | Description |
|---|---|
| characterMap | Character-to-glyph lookup map. |
| characters | Unicode glyphs available in this font. |
| font | Implementation-specific parsed font data. |
| fontSize | Font size used for the glyph atlas. |
| framebuffer | Normalized glyph atlas framebuffer used by the ASCII shader. |
| maxGlyphDimensions | Maximum glyph cell dimensions in pixels. |
| textureColumns | Number of columns in the glyph atlas. |
| textureRows | Number of rows in the glyph atlas. |
Methods
| Method | Description |
|---|---|
| dispose | Dispose of all resources used by this font manager. |