Using Fonts in Blitz

Blitz3D Forums/Blitz3D Programming/Using Fonts in Blitz

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.

In addition to the above...

I also found there was a loading problem if the font was in a folder e.g. called 'fonts\' next to the main engine.
LoadFont gave no error(?), but the the font never appeared (defaulted to Arial)!

By trial and error I found that the font would load if I gave a 'fuller' path (though a drive letter was not necessary) e.g. \Projects\Game\fonts\myfont.ttf which effectively indicates the root of the drive, and the folder path upwards from there.

So make use of CurrentDir$() in building the font filename.

No other resources needed this approach!