textmode.js / fonts / TextmodeTileset
Class: TextmodeTileset
Bitmap tileset glyph source for textmode rendering.
Tiles are imported from a source sheet, repacked into the same contiguous atlas layout used by vector fonts, and exposed through the shared glyph-atlas contract.
fontSize() changes on a tileset only affect the effective output cell size. The native atlas stays at the authored tile resolution.
Example
Extends
Disposable
Implements
Accessors
| Accessor | Description |
|---|---|
| cellDimensions | Combined glyph cell dimensions in pixels. |
| cellHeight | Height of each glyph cell in pixels. |
| cellWidth | Width of each glyph cell in pixels. |
| characterMap | Lookup table from character string to glyph entry. |
| characters | Ordered glyph entries available in this atlas. |
| columns | Number of glyph columns in the atlas texture. |
| fontFramebuffer | Tileset atlas framebuffer backing this glyph atlas. |
| fontSize | Effective font size used to scale tileset cells. |
| framebuffer | Framebuffer containing the atlas texture data. |
| maxGlyphDimensions | Effective tile dimensions used by the layer grid. |
| nativeCellDimensions | Authored tile dimensions from the source tileset in pixels. |
| rows | Number of glyph rows in the atlas texture. |
| textureColumns | Number of columns in the repacked tileset atlas. |
| textureRows | Number of rows in the repacked tileset atlas. |
Methods
| Method | Description |
|---|---|
| dispose | Dispose the tileset and release its shared atlas resources. |