change font # in text box

Started by homey3, Sun 08/08/2004 10:29:35

Previous topic - Next topic

homey3

I have a new gui for the text box but I need the font size different than the size used for everything else.  How do I do this? 

Jonathan Grant

SilverWizard_OTF

If you want to a specific room to change Font Size, then you can call the script command SetNormalFont ( //font numbe) to "before fade in" area  . When you will be leaving the screen, then you will use again this command to set your starting font.

"All we have to decide is what to do, with the time that is given to us"

Ashen

But, that only works if the new font is a different size to the old one, which by default none of them are.

I think you have to import a new font at a larger size, then use that as the new font.
I know what you're thinking ... Don't think that.

SilverWizard_OTF

You are right, i forgot to remind that it is needed  a new, larger size, font to be imported.
"All we have to decide is what to do, with the time that is given to us"

homey3

Yeah, I have the different size imported.  Actually, I misspoke.  I need the text box font different (globally) from all the other font (otherwise the font won't fit in the gui boxes, like the "do you want to quit" gui).

Jonathan Grant

SilverWizard_OTF

You should give more information. For what do you want this Gui, and what    is its purpose in your game?

"All we have to decide is what to do, with the time that is given to us"

homey3

It's simple.  The font I'm using has to be a certain size to fit in the buttons (example, the quit or play buttons in the exit gui.  If any larger the words go outside the buttons) but if it is that same size for the text boxes it looks funny because it's so small.


SilverWizard_OTF

It doesn't look small to me (and with 800 X 600 resolution).
Anyway, maybe you should make a custom Guit-Game-Gui,  enough big to fit to your new fontt
"All we have to decide is what to do, with the time that is given to us"

homey3

Wouldn't it be easier just to assign different fonts for the text boxes from the rest of the game's font?  What if I want it a different kind of font?  Is there a way to do this?

Scorpiorus

Maybe I'm misundestanding it but you can actually change the Textbox's Font property to the font you need.

SMF spam blocked by CleanTalk