LoadFont
Loads a font.
LoadFont ( fontname$[,height][,bold][,italic][,underline] )
Parameters
- fontname$
- the font file or installed font's name.
- height (optional)
- how tall the letters are, in pixels. Defaults to 12.
- bold (optional)
- 1 for bold letters.
- italic (optional)
- 1 for slanted letters.
- underline (optional)
- 1 to underline the text.
Description
Loads a font and gives back its handle, ready for SetFont. The name can be a font file next to the program (.ttf, .otf, .woff or .woff2), or the name of a font installed on the computer, such as "Arial". A font file is the safe choice for a finished game, as players may not have the same fonts installed.
