Font error

Blitz3D Forums/Blitz3D Beginners Area/Font error

luke101(Posted 2004) [#1]
Hello I am trying to load a font but it is not loading in blitz. It looks like the default font here is my code:


Graphics 800, 600, 16, 2
SetBuffer BackBuffer()

Global s = LoadFont("c\fonts\MANCH_EI.pfb", 72, False, False, False)
SetFont s
While Not KeyHit(1)
ClsColor 255, 255, 0
SetFont s
Text 300, 300, "Luther"
Flip
Wend


darklordz(Posted 2004) [#2]
blitz might not accept pfb files...
why not convert the pfb file into a bitmapped font they look better anyways...


luke101(Posted 2004) [#3]
hmmm...how would i do that..im a newbie


Beaker(Posted 2004) [#4]
Also, if the font is installed you don't specify the directory.


darklordz(Posted 2004) [#5]
check the code archives for examples and search this forum for bitmapped font. Ive posted code before......Also check out masterbreakers sig it has a link to fontext a free version is availiable to make bitmapped fonts...


Zethrax(Posted 2004) [#6]
I think Blitz only works with True Type fonts. The font file can be either in the same directory as your program, or in the Windows font directory. The font name you specify in LoadFont should be the same as the text that appears in large print in the top line of the Windows font viewer, minus the ' (TrueType)' part.


luke101(Posted 2004) [#7]
ok...ive got it to work...i see it only works with ttf files only..thanks guys