GenDefaultFont()


font = GenDefaultFont({style, charsize, charsPerRow, charset$})

style

Style of the font to be created (see below).

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 on this function are optional.


Font style constants are defined in the following include file.

include "Game Engine Constants.inc"

' Font Styles
Const Font_Normal = 1
Const Font_Bold = 2
Const Font_Italic = 3
Const Font_Bold_Italic = 4

Game Engine Overview







Become a Patron