Question about loading fonts.

BlitzMax Forums/BlitzMax Beginners Area/Question about loading 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.

Hello,

I've searched this forum on how to load fonts, and I still cant get them to work :(

I'm using the following syntax:

Global a_font:TImagefont=LoadImageFont("/images/fonts/myriad.ttf",20)
SetImageFont a_font


At runtime I get the error of:

Unhandled Exception: Attempt to access field or method of Null object

Anyone know what the problem may be?