GenFont()


font = GenFont(fontPath$ {, charsize, charsPerRow, charset$})

fontPath$

The file path of a ttf (true type Font) file.

charsize

Size of the characters in pixels.

charsPerRow

Number of characters per row in the generated font tileset.

charset$

A string containing all the characters to be included in the font tileset.


Fonts are a special kind of tileset. Each tile in the tileset is one character. All the parameters except the ttf file path are optional.


Game Engine Overview







Become a Patron