Font not loading??

Archives Forums/MacOS X Discussion/Font not loading??

KamaShin(Posted 2005) [#1]
... or is it just me not doing things the right way???
well, that's very simple, here is the code:

fpsFont = LoadImageFont("Pictures\Gargoyles N",18)
SetImageFont(fpsFont)

where Gargoyles N is a TrueType font my OS X is able to read... but I still get the default font when writing text with DrawText... don't know why...


Booticus(Posted 2005) [#2]
Hey! The following code works on my Mac and PC. Bummer is for now you need to actually put a copy of the font you want to load in a directory where you can direct Blitz Max to it:



Holler if you have probs still, I can send you the code in a STUFFIT archive or something like that. :)


Who was John Galt?(Posted 2005) [#3]
KamaShin - stick a line in the middle like:
if fpsFont
Text "font loaded",100,100
else
Text "font not loaded",100,100
endif

..and see what you get.


KamaShin(Posted 2005) [#4]
I got the "font not loaded" message... However I ve solved the problem :)
it appears that the font found in the OS X system won't be loaded by BMax... I then tried some ttf fonts downloaded on the net and they all worked fine :)
thanks for the answers though :)