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

The human-readable name.

name: string;

atlas

The atlas.

atlas: Texture;

size

The dimensions.

size: number;

resource

The resource backing this object.

resource: Resource;

texture

The texture used for rendering.

texture: Texture;

Methods

fromResource

Creates a value from resource.

static fromResource(resource: Resource): Font;

getFont

Returns font.

static getFont(name: string): Font;

changeSize

Change size.

changeSize(size: number): Font;

On this page