Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: homey3 on Sun 08/08/2004 10:29:35

Title: change font # in text box
Post by: homey3 on Sun 08/08/2004 10:29:35
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
Title: Re: change font # in text box
Post by: SilverWizard_OTF on Sun 08/08/2004 10:38:56
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.

Title: Re: change font # in text box
Post by: Ashen on Sun 08/08/2004 10:42:11
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.
Title: Re: change font # in text box
Post by: SilverWizard_OTF on Sun 08/08/2004 10:45:14
You are right, i forgot to remind that it is needed  a new, larger size, font to be imported.
Title: Re: change font # in text box
Post by: homey3 on Sun 08/08/2004 11:04:16
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
Title: Re: change font # in text box
Post by: SilverWizard_OTF on Sun 08/08/2004 11:13:09
You should give more information. For what do you want this Gui, and what    is its purpose in your game?

Title: Re: change font # in text box
Post by: homey3 on Sun 08/08/2004 11:29:50
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.

Title: Re: change font # in text box
Post by: SilverWizard_OTF on Sun 08/08/2004 11:38:12
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
Title: Re: change font # in text box
Post by: homey3 on Sun 08/08/2004 18:34:27
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?
Title: Re: change font # in text box
Post by: Scorpiorus on Wed 01/09/2004 17:34:15
Maybe I'm misundestanding it but you can actually change the Textbox's Font property to the font you need.