Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Sinister on Fri 02/06/2006 17:51:36

Title: Font changes in same window?
Post by: Sinister on Fri 02/06/2006 17:51:36
Ok, i dont know if this has been asked before, but i did look it up before asking and found no topics regarding this.

Is it possible to have the first Letter in the text window, done in another font and another color?

Example:

"The kid was nice fellow.." where "T" is a larger font and red. The rest is just normal font.

I know it can be done, but i dont know how. And I hope someone knows a practical way of applying this to all the text windows (display text/ not speech)..
Title: Re: Font changes in same window?
Post by: Khris on Fri 02/06/2006 18:26:42
Quote from: Sinister on Fri 02/06/2006 17:51:36I know it can be done, but i dont know how.
Did you see this in another game? Then that person was probably using premade sprites rather than text windows.
Since Display()-strings are "text only" and there aren't any tags or the like for changing font/color in-text in AGS, I highly doubt this is possible using Display();
Title: Re: Font changes in same window?
Post by: strazer on Fri 02/06/2006 19:37:55
http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=157
http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=237
Title: Re: Font changes in same window?
Post by: Sinister on Sat 03/06/2006 04:37:30

Yes, I have seen it. And yes.. it was in the text window. And it was like that for all text messages, obviously using "Display". This was not the case with dialogue however.

He might be using a sprite like you said, and incorporating it to the text GUI.. then changing the sprite and make it the first letter of each message. But it seems like a lot of work for such a rather.. small detail.

The font had not only color, but it infact had two colors.. then normal text. If you look at the Kq5 or Kq6 windows.. you'll know what I'm talking about.

And I'm just very puzzled..

NOTE: This would be a very nice adition to the next AGS version.
Title: Re: Font changes in same window?
Post by: Kweepa on Sun 04/06/2006 04:26:38
Quote from: Sinister on Sat 03/06/2006 04:37:30
And it was like that for all text messages, obviously using "Display".
Don't jump to conclusions. It may seem like Display, but that proves nothing.

Quote
He might be using a sprite like you said, and incorporating it to the text GUI.. then changing the sprite and make it the first letter of each message. But it seems like a lot of work for such a rather.. small detail.
Well, you noticed it, so it was worth it. No?

Quote
The font had not only color, but it infact had two colors..
Since that's not possible with normal fonts, that pretty much proves it's a sprite.

Quote
And I'm just very puzzled..
Why? You have the solution. Never underestimate the work some people are prepared to do to get exactly what they want.

Quote
NOTE: This would be a very nice adition to the next AGS version.
Or make a nice module.
Title: Re: Font changes in same window?
Post by: Sinister on Mon 05/06/2006 05:42:01
you're absolutly right.

I just got struck by lightning, and I know how to do this and make a great module.
Title: Re: Font changes in same window?
Post by: SSH on Mon 05/06/2006 10:51:09
Save yourself some effort and add the multi-font capability to my SpriteFont module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=23881.0)