Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Old Guy on Thu 03/06/2010 06:16:41

Title: Text Rendered Incorrectly with AGS 3.2
Post by: Old Guy on Thu 03/06/2010 06:16:41
The following screenshot show three text fields. The text on the transparent GUI is rendered incorrectly. It appears to be rendered as BOLD.

http://www.creativeloops.com/Samples.jpg (http://www.creativeloops.com/Samples.jpg)

The last time I was actively working on my game I was using AGS 3.1.2, and at that time the problem did not occur.

I have AGS 3.2 Final 4 installed on Windows 7 and a Windows 2000, and the problem occurs on both machines. I tried a couple of other TTF fonts, but the results were the same.
Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Gilbert on Thu 03/06/2010 06:51:00
I think it's part of the popular transparency problem, that the semi-transparent pixels of the text are all rendered as solid (white) when using a transparent GUI.

Since I'm not quite familiar with the problem I cannot say for sure whether this can be fixed (I think using an image with alpha channel as the background of the GUI does fix some of the problems but I'm not so sure) and you may try searching for old topics to see if they help. It's odd that it worked back in V3.1.2 though.
Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Calin Leafshade on Thu 03/06/2010 15:28:31
yea make a blank (or nearly blank) image with an alpha channel and set it as the background for the gui.

that will fix it.
Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Old Guy on Mon 07/06/2010 05:57:38
Thanks for your suggestions Glibet and Calin!

However, given that this worked correctly in V3.1.2 but behaves differently now, it does seem like this is a bug that needs fixing, and not something that requires a workaround to make it function properly.

Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Gilbert on Mon 07/06/2010 06:12:04
As far as I recall that never worked unless this workaround was used. Are you sure you did the same thing in V3.1.2.
Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Old Guy on Tue 08/06/2010 04:18:30
Quote from: Gilbet V7000a on Mon 07/06/2010 06:12:04
As far as I recall that never worked unless this workaround was used. Are you sure you did the same thing in V3.1.2.

Yes indeed.

Screenshot from game compiled using Version 3.1.2
(http://www.creativeloops.com/Version3.1.2.jpg)

Screenshot from game compiled using Version 3.2
(http://www.creativeloops.com/Version3.2.jpg)
I suppose it's worth mentioning that I am using SSH's Description Module V1.06 to display the description of objects underneath the mouse (using a transparent GUI). However, the problem exists even when I not using the module, as shown in the screenshot that I included at the top of this thread:

http://www.creativeloops.com/Samples.jpg (http://www.creativeloops.com/Samples.jpg)
Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Dualnames on Tue 08/06/2010 13:15:33
Old Guy I see your character becomes anti-aliased on version 3.2 , maybe that's the case?
Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Pumaman on Tue 08/06/2010 22:04:09
Well spotted, thanks. 3.1.2 used to disable TTF anti-aliasing in this situation; 3.2 doesn't but then doesn't support it properly either.

Please try 3.2 Final 5 in the release thread, it should fix this.
Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Old Guy on Wed 09/06/2010 02:30:06
Quote from: Pumaman on Tue 08/06/2010 22:04:09
Well spotted, thanks.

Well fixed!

3.2 Final 5 fixed the problem, and the world is rosy once again.

Thanks CJ.
Title: Re: Text Rendered Incorrectly with AGS 3.2
Post by: Pumaman on Sun 13/06/2010 22:40:47
Glad to hear it!