incbin font

BlitzMax Forums/BlitzMax Beginners Area/incbin font

This works for me:
Graphics 640,480,0,0

Incbin "c:\windows\fonts\times.ttf"

Global newfont:TImageFont = LoadImageFont("incbin::c:\windows\fonts\times.ttf",20)
SetImageFont(newfont)

While Not KeyDown(KEY_ESCAPE)
	Cls
	
	DrawText "Test", MouseX(), MouseY()
	
	Flip
Wend
End


*EDIT*
it also worked when I copied times.ttf to the source folder, removed the absolute pathing then moved the resulting exe to another folder.