Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

createNewFont

Description

Creates a new font with the specified parameters.

Arguments

1 string path

the path to the font.

2 string name

the name to give to the font.

3 number size

the size of the font. Ideally this should not be an odd number.

4 string scaler

the scaler to use for this font. If none is specified, it will fall back to the "ui" scaler.

5 bool skipScaling

whether scaling of this font should be skipped.

Returns

1 Font

the created font object.