changing the font

BlitzMax Forums/BlitzMax Beginners Area/changing the font

can someone give me an example of how to select a font other that the default arial, then using it ?

superstrict
graphics 640,480
local a_font:TImagefont=LoadImageFont("<fontpath>/fontname.ttf>",20)
SetImageFont a_font
drawtext "Hello World!",0,0
flip
waitkey()

more and
more and more

thanks tonyg - worked like a charm - and so simple its embarassing