This is a rehash of the problem I posted in the BlitzPlus Bugs group a couple of days ago, but unfortunately so far nothing I tried has made the issue go away.
Anyway: I downloaded a truetype font online ( www.aenigmafonts.com/fonts/fonts/op/plasdrip.zip ), which works just fine in BlitzPlus when I actually install the font. That is nice, but inconvenient since I would prefer to keep my game 'self-contained' in a single directory without dumping anything in the windows fonts/system directories.
I use the following code:
The internal font name is "Plasma Drip BRK", and when the font is actually 'installed' it renders just fine when called by that name... When it is in the game directory instead, however, it reverts to Arial instead.
Since supposedly the font filename and the fonts internal name are supposed to match, I tried renaming the font file to the following:
- 'Plasma Drip BRK.ttf'
- 'Plasma Drip BRK.fon'
- 'Plasma Drip BRK'
- 'PlasmaDripBRK.ttf'
as well as trying LoadFont("PlasDrip.ttf"60,False,False,False)
Unfortunately none of these tries work. When the font is 'installed' it works fine, but when it merely resides in the game folder all I get is Arial.
This is just one of many fonts I tried recently, and all appear to have the same problem.
I'm starting to pull my hair out now. :-)
Does anyone here have any suggestions?
Anyway: I downloaded a truetype font online ( www.aenigmafonts.com/fonts/fonts/op/plasdrip.zip ), which works just fine in BlitzPlus when I actually install the font. That is nice, but inconvenient since I would prefer to keep my game 'self-contained' in a single directory without dumping anything in the windows fonts/system directories.
I use the following code:
Graphics 640,480,0,2 FreeFont fnt1 fnt1=LoadFont("Plasma Drip BRK",60,False,False,False) SetFont fnt1 Text 100,100,"This is a test!" Flip WaitKey()
The internal font name is "Plasma Drip BRK", and when the font is actually 'installed' it renders just fine when called by that name... When it is in the game directory instead, however, it reverts to Arial instead.
Since supposedly the font filename and the fonts internal name are supposed to match, I tried renaming the font file to the following:
- 'Plasma Drip BRK.ttf'
- 'Plasma Drip BRK.fon'
- 'Plasma Drip BRK'
- 'PlasmaDripBRK.ttf'
as well as trying LoadFont("PlasDrip.ttf"60,False,False,False)
Unfortunately none of these tries work. When the font is 'installed' it works fine, but when it merely resides in the game folder all I get is Arial.
This is just one of many fonts I tried recently, and all appear to have the same problem.
I'm starting to pull my hair out now. :-)
Does anyone here have any suggestions?