Interface GameFont

A font generate in the graphics context.

interface GameFont {
    baseline: number;
    chars: string;
    lineHeight: number;
    tiles: TileSet;
    widths: FontCharacterWidths;
}

Properties

baseline: number

The offset from the top of the image to the font baseline where the character will be aligned

chars: string

The collections of characters available in this font

lineHeight: number

The vertical space to give each line

tiles: TileSet

The tile set of images that is used to render the font

The widths of the characters in the font

Generated using TypeDoc