kytschBASIC

Put down that phone!
Please view me on real computer.

BITMAPFONT
FONT
Requires arcade library

The ability to use a font when writing on a bitmap.

Example

SCREEN "the-traveller",800,600
	WINDOW "intro"
		RGB 0,0,0
		BITMAP 0,0,800,400
			RGB 255,0,0
			BITMAPFONT "_ROOT/kytschi/fonts/8bitOperatorPlus8-Regular.ttf"
			BITMAPTEXT 220,150,32,0,75,"The Traveller"
			BITMAPTEXT 235,320,18,0,75,"Press any key to start"
		BITMAP CLOSE
	WINDOW CLOSE
	WINDOW "input"
		RGB 0,0,0
		BITMAP 0,0,800,200
			RGB 255,0,0
			LINE 0,0,800,0
		BITMAP CLOSE
	WINDOW CLOSE
SCREEN CLOSE

Output

Parameters

Parameter Type Description
FONTstringFont to load

See also