Atlas Engine
API Referencegraphite

Font

Resource-backed font with atlas texture and size controls.

Module: graphite

Resource-backed font with atlas texture and size controls.

Declaration

export class Font { ... }

Properties

name

name: string;

atlas

atlas: Texture;

size

size: number;

resource

resource: Resource;

texture

texture: Texture;

Methods

fromResource

static fromResource(resource: Resource): Font;

getFont

static getFont(name: string): Font;

changeSize

changeSize(size: number): Font;

On this page