problem loading font (with Xors)

Blitz3D Forums/Blitz3D Programming/problem loading font (with Xors)

Vorderman(Posted 2011) [#1]
I've just tried my game on my Win7 machine and it won't load a ttf font from a folder within my game's directory.

On the WinXP machine it loads fine.

This is using Xors' xLoadFont command with the extra parameter at the end of the line:

FRONTEND\FONT_size1 = xLoadFont("viper nora",36,False,False,False,"fonts\viper.ttf")


Anyone got any ideas why Win7 means it can't load the font?


Vorderman(Posted 2011) [#2]
Another issue - loading the font works on the WinXP machine but results in graphical corruption in the game.

Very odd... I think I'll stick to a standard font...

Edit: only corrupts if I load the font during the frontend - if I preload it just after the Graphics3D command then it works (on WinXP at least..)

Last edited 2011


big10p(Posted 2011) [#3]
B3D does seem to be a bit flaky when it comes to TTF fonts. In Juicy Fonts, it flat out refused to load some fonts with no apparent reason. Loading fonts after Graphics3D is definately the best way to go, though.


Kryzon(Posted 2011) [#4]
Try the Xors3D forums.