LoadImageFont issue

BlitzMax Forums/BlitzMax Programming/LoadImageFont issue

Will(Posted 2007) [#1]
I'm not sure why this is happening, but when I attempt to load a font to use later in game, the game just decides to crash.

Local bigfont1:TImageFont=LoadImageFont("Data/Font.dfont",48)
Print "after bigfont1"
Local bigfont2:TImageFont=LoadImageFont("Data/Font.dfont",40)
Print "after fonts, and before input of name"


It never gets to "after bigfont1", it just crashes. No debug information either.
By the way, I'm using an Intel Mac if that affects things at all.
Thanks,
Will


GfK(Posted 2007) [#2]
What's a "dfont"?

Shouldn't you be using TTFs with LoadImageFont?


SebHoll(Posted 2007) [#3]
I don't think BlitzMax supports direct loading of DFonts as it is pretty much a Mac standard and not very cross-platform friendly. You should try converting it to a TTF using a free command-line app called Fondu. Let us know if it still doesn't work after you do this.

Edit: You may be able to do it using FontForge which is apparently what Fondu was developed for and is easier to use - here is the SourceForge download page.


Will(Posted 2007) [#4]
It works, thanks a lot!

Will