Skip to content

Font API

Gentilhomme edited this page Jul 3, 2016 · 2 revisions

Font API

Allows to easily manage the fonts for your project through variable accessible from anywhere.

Warning : The beta framework doesn't have default font, so rewrite the default font by your self.

this.actor.textRenderer.setFont(United.font.Default); 

Class methode

These method can help you to add or get a font Asset at any moment of the game execution.

static add(name:string,asset:Sup.Asset) : boolean
static get(fontName:string) : string
Clone this wiki locally