Adventure Game Studio | Forums

AGS Support => Advanced Technical Forum => Topic started by: Ali on Mon 21/03/2011 13:02:51

Title: Anti-Aliased TTF looking bad?
Post by: Ali on Mon 21/03/2011 13:02:51
Nelly Cootalot has almost been translated into Spanish. To achieve this, I had to switch to a true-type font. I also went through and upgraded the game to DX9, adding anti-aliased edges for the character sprites.

However I just got a complaint from the translator that the font is hard to read against light backdrops:

(http://i.imgur.com/91zEe.png)

This was the clearest font I tested, but the outline is very faint. Is there any way to embolden it? Apart from downgrading to 16 bit colour!
Title: Re: Anti-Aliased TTF looking bad?
Post by: Monsieur OUXX on Mon 21/03/2011 13:11:17
Quote from: Ali on Mon 21/03/2011 13:02:51
I added anti-aliased edges for the character sprites.

My answer is off-topic but WELL DONE that was my main critics when the game was released.
Title: Re: Anti-Aliased TTF looking bad?
Post by: Ali on Mon 21/03/2011 13:16:21
Off-topic-reply: I my defence, AGS couldn't do AA with scaling characters back in the bad old days of 2007. Thanks for the encouragement!
Title: Re: Anti-Aliased TTF looking bad?
Post by: Pumaman on Mon 21/03/2011 22:46:33
AGS currently does a 1 pixel-wide outline, but looking at this it probably would be better if you could specify a thicker (eg. 2- or 3-pixel) outline. Something to consider for a future version.
Title: Re: Anti-Aliased TTF looking bad?
Post by: Ali on Tue 22/03/2011 00:43:29
I think that would be a great idea... especially if AGS is moving towards support for 1280x.
Title: Re: Anti-Aliased TTF looking bad?
Post by: hedgefield on Tue 22/03/2011 10:57:51
I've noticed the poor aliasing with TTF fonts aswell, more and more now recently as the resolution of my games go up and the polish of the graphics becomes higher. Widening the font outline (or being able to set it manually) would help a lot probably, though the outlines are still kinda choppy.
Title: Re: Anti-Aliased TTF looking bad?
Post by: Calin Leafshade on Tue 22/03/2011 11:36:11
This is a known issue actually (well i think it's known). Basically AGS doesn't AA the font outline. So it draws it something like this:

Get font
Generate outline from un-AA font shape.
Draw font AAed
Draw outline on top un-AAed.

This is why you can see part of the AAed font sticking out from under the outline if you look closely enough. This obviously does not look ideal and looks quite messy.

The manner in which AGS generates the outline for fonts isn't really suitable for true type AAed fonts and needs revising which i have half done in a plugin but then I didnt bother finishing it because no one uses plugins :p

Title: Re: Anti-Aliased TTF looking bad?
Post by: theo on Thu 31/03/2011 19:26:19
Quote from: Calin Leafshade on Tue 22/03/2011 11:36:11The manner in which AGS generates the outline for fonts isn't really suitable for true type AAed fonts and needs revising which i have half done in a plugin but then I didnt bother finishing it because no one uses plugins :p

For you Calin, I might consider making an exception. Such a plugin would be nice.

Quote from: Ali on Mon 21/03/2011 13:02:51I also went through and upgraded the game to DX9, adding anti-aliased edges for the character sprites.

Sweet! Good call. Easy fix that will add much polish.