textareafont with blitz.fon

BlitzMax Forums/MaxGUI Module/textareafont with blitz.fon

CS_TBL(Posted 2007) [#1]
I've something along the lines of:
Local edit:TGadget=CreateTextArea(0,0,620,600,window)
Local guifont:TGuiFont=LoadGuiFont ("C:\WINDOWS\FONTS\Blitz.fon",10)
If guifont<>Null SetTextAreaFont edit,guifont


The font is the Blitz.fon that comes with B3d -iirc-, since I actually like that font I use it also in the IDEs of BMax, B+, and I even use it in M$ C++, those 3 times a year I use C++. :D

So, my own app shall use the same font.. I hoped. This font just doesn't show up in my textarea, I get some alternative/thin font. If I however c/p some of my bmax code in it (which uses that Blitz font) I get the proper font in my textarea, with all its BMax colors even. So, what's going on??

(ps. I'm on 1.22 for stability reasons, I hope it's not related .. :-)


ninjarat(Posted 2007) [#2]
I think GUI textareas need you to do something special in order to use non-truetype fonts. Could be mistaken, but I've never had any luck getting .fon to work in a GUI either (and that was using C and doing win32 syscalls, so it's not just BlitzMax.) :?


CS_TBL(Posted 2007) [#3]
Right then, to the insect-section with it..