Skip to content

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

AccessorDescription
cellDimensionsCombined glyph cell dimensions in pixels.
cellHeightHeight of each glyph cell in pixels.
cellWidthWidth of each glyph cell in pixels.
characterMapLookup table from character string to glyph entry.
charactersOrdered glyph entries available in this atlas.
columnsNumber of glyph columns in the atlas texture.
fontFramebufferTileset atlas framebuffer backing this glyph atlas.
fontSizeEffective font size used to scale tileset cells.
framebufferFramebuffer containing the atlas texture data.
maxGlyphDimensionsEffective tile dimensions used by the layer grid.
nativeCellDimensionsAuthored tile dimensions from the source tileset in pixels.
rowsNumber of glyph rows in the atlas texture.
textureColumnsNumber of columns in the repacked tileset atlas.
textureRowsNumber of rows in the repacked tileset atlas.

Methods

MethodDescription
disposeDispose the tileset and release its shared atlas resources.