incbin and font in 1.06

BlitzMax Forums/BlitzMax Beginners Area/incbin and font in 1.06

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.

OK, I thanked you before testing it. :) It failed. The default font still shows up. Here's my code initializing the graphics when it works:

Strict
SeedRnd MilliSecs()
Const gcontinentwidth=1024
Const gheight=768

Graphics gcontinentwidth,gheight',0

Global hoog:TImageFont=LoadImageFont("Media/Fonts/hoog0553.ttf",8)'
SetImageFont hoog

SetBlend ALPHABLEND	

Incbin "Media\2d\Terrain\water.png"
Global water:TImage = LoadImage ("incbin::Media\2d\Terrain\water.png")

'etc. etc.



'#Region Initialize graphics and variables
Strict
SeedRnd MilliSecs()
Const gcontinentwidth=1024
Const gheight=768

Incbin "Media/Fonts/hoog0553.ttf"
Graphics gcontinentwidth,gheight',0

Global font:TimageFont=LoadImageFont("incbin::Media/Fonts/hoog0553.ttf",8)
SetImageFont font

SetBlend ALPHABLEND	

Incbin "Media\2d\Terrain\water.png"
Global water:TImage = LoadImage ("incbin::Media\2d\Terrain\water.png")
'etc. etc.


Just for fun, I threw the font file in the root directory of my project. No love either. Clues?