Font Width?

BlitzMax Forums/BlitzMax Beginners Area/Font Width?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Do you mean like this:

Graphics 800, 600

Global test$ = "FTW, HeLlO WoRlD!!!"

While Not KeyDown(KEY_ESCAPE)

	Cls
	
	SetColor 0, 0, 175
	DrawRect 10, 10, TextWidth(test), GetImageFont().height() ' textheight(test)
	SetColor 255, 255, 255
	DrawText test, 10, 10
	
	
	Flip
	
Wend