Skip to content

textmode.js / fonts / TextmodeGlyph

Type Alias: TextmodeGlyph ​

ts
type TextmodeGlyph = object;

Represents a single glyph entry in a textmode glyph atlas.

Properties ​

character ​

ts
character: string;

The Unicode character used to address this glyph.


color ​

ts
color: [number, number, number];

RGB-encoded glyph identity used by the render pipeline and exposed through character color lookups.


glyphData? ​

ts
optional glyphData?: GlyphData | null;

Glyph outline data including advance width and path information.

Only available for TextmodeFont glyphs, not TextmodeTileset glyphs, since tilesets use pre-rendered bitmap data instead of vector outlines.


unicode ​

ts
unicode: number;

The Unicode code point of the character.