Using fonts
BlitzMax Forums/BlitzMax Beginners Area/Using fonts| 
 | ||
| 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
WaitMouseAnyone have success in using the built in font stuff? | 
| 
 | ||
| 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 | 
| 
 | ||
| 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... | 
| 
 | ||
| I said it was planned. At the moment you have to supply a path to a font file not a font name. | 
| 
 | ||
| Ahh OK .. yeah, that seems to work.  Thanks! | 
| 
 | ||
| Remember to supply paths for each os ;] | 
| 
 | ||
| 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... |