Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

createNewFonts

Description

Create a number of fonts with the specified sizes.

Arguments

1 string path

the path to the font object.

2 string baseName

the base name for the created font objects.

3 number sizeOffset

the offset to the sizes specified in the vararg. The sizeOffset won't affect the naming for each created font.

4 vararg sizes

the sizes to create for the font. Every created font will have it's name concatenated from the baseName with the sizes provided in the vararg. sizeOffset does not affect the naming of the fonts, just the actual size.

Returns

1 table

a list of with all the created font objects. You do not need to store these anywhere, that's done for you already.