Drawing a text with standard windows fonts?

BlitzMax Forums/BlitzMax Programming/Drawing a text with standard windows fonts?

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.

Graphics 640 , 480

Local dir$ = getenv_("WINDIR") 
Print dir
Local font:timagefont = LoadImageFont(dir+"\fonts\times.ttf" , 64) 
If font
	SetImageFont font
End If

While Not AppTerminate() 
	Cls
	
	DrawText "Hallo" , 100 , 100
	
	Flip
	PollSystem
Wend
End