LOADFONT and SETFONT Question

Previous topic - Next topic

jkirchner

Forgive the question if it is simple, I just got GLB this weekend and have been reading the help file and working through the exercises but I have a question.  The font was very small on the Hello World example so I read through the help and found the LOADFONT and SETFONT commands.  I also worked out how to make the font with the utility and save it and all.

My question is regarding the input fields.  I put LOADFONT "font_name.bmp", 1 but what exactly does that 1 mean?  I cannot find it referenced in the help file.  Also, SETFONT 1....what does the number mean there?  I played with them and actually had setfont accept a .5.  When I tried a 4 the font did not show (probably due also the the x, y it was given; though with the .5 it appeared again.  This is when I was working with the first game and trying to modify it further.).

If I missed where it was defined in the manual/help please tell me where; if not could someone explain what the numbers do?  Thanks.

John

trucidare

The 1 is the Picture Number.

LOADFONT "blah.bmp",1 loads blah in number 1 then you can do SETFONT 1.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

jkirchner

#2
Ohhhh.  That makes sense then.

So, if I get this right, if I have say 2 fonts I want to use I could assign one to number 1 and the other to number 2 and then could reference them before print commands with just a setfont 1 or setfont 2?

EDIT:  Never mind the question here, I tested my question and it does work.  I see this is very much like loading other pictures. 

Thanks for your help.