changing the font

BlitzMax Forums/BlitzMax Beginners Area/changing the font

delusan(Posted 2007) [#1]
can someone give me an example of how to select a font other that the default arial, then using it ?


tonyg(Posted 2007) [#2]
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


delusan(Posted 2007) [#3]
thanks tonyg - worked like a charm - and so simple its embarassing