Using fonts

BlitzMax Forums/BlitzMax Beginners Area/Using fonts

Warren(Posted 2004) [#1]
Anyone have any joy using fonts on a Mac? This is based on some sample code that SkidRacer posted in another thread that I found in my searching. It doesn't yield the impact font...

Graphics 640,480,0
SetBlend ALPHABLEND
myfont=LoadImageFont("Impact",24)
SetImageFont myfont
DrawText "Hello World",0,0
Flip
WaitMouse

Anyone have success in using the built in font stuff?


Nessie(Posted 2004) [#2]
I don't know if it the same for the Mac as it is for Windows and Linux, but you need to have the font in the same folder as your program file


Warren(Posted 2004) [#3]
According to some other posts I read, they said that the FreeType library BRL is using will look in the standard OS locations for fonts. Is that not the case?

I really don't want to distribute fonts with my application if I can avoid it...


skidracer(Posted 2004) [#4]
I said it was planned. At the moment you have to supply a path to a font file not a font name.


Warren(Posted 2004) [#5]
Ahh OK .. yeah, that seems to work. Thanks!


Hotcakes(Posted 2004) [#6]
Remember to supply paths for each os ;]


Warren(Posted 2005) [#7]
I'm probably going to abandon it for now, actually. It seems a little hokey. I'll wait until they flush it out and finalize things...