GLBasic User Manual

Main sections

SETFONT

SETFONT num% [, scale#=1]



SETFONT sets the current font for the commands PRINT and INPUT. The font is a bitmap font - this means that all characters have the same width and height as every other character.
Font-bmps must be the size of 16*x and 8*y pixels. Use the GLBasicFont utility to make a bmp-font from a TrueTypeFont.

The optional scale# parameter allows you to set the scaling of 2D printed text.

Sample:
 
PRINT "Hello World", 100, 100
LOADFONT "comp_fnt.bmp", 1
SETFONT 1
PRINT "Computer", 100, 150
SHOWSCREEN
MOUSEWAIT

See also...