Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: henrikes on Wed 27/06/2018 21:30:46

Title: How to get quality Fonts
Post by: henrikes on Wed 27/06/2018 21:30:46
Hi,

Is there a way to have quality fonts in AGS?

My fonts always look pixelated...
Title: Re: How to get quality Fonts
Post by: eri0o on Wed 27/06/2018 21:39:52
Which resolution you are working?
Title: Re: How to get quality Fonts
Post by: Crimson Wizard on Wed 27/06/2018 22:00:02
In AGS fonts are always drawn in the game's native resolution. If your game for example is 320x200, everything will look pixelated no matter what.

If your game is hi-res, then you should be able to import hi-res bitmap fonts or TTF fonts with high "size" value that may look better.

Additionally, if you are using TTF fonts, you may try enabling "Anti-alias TTF fonts" in General Settings ("Text output" section). But the result may vary depending on fonts.
Title: Re: How to get quality Fonts
Post by: henrikes on Thu 28/06/2018 22:11:33
Resolçution is 1280 x 720

Using a TrueTypeFont and I cant get the font to look smooth.

Example:
(https://i.imgur.com/fEvRX71.jpg)

Title: Re: How to get quality Fonts
Post by: Crimson Wizard on Thu 28/06/2018 23:18:52
I am not sure it may get smoother than that without antialiasing. Have you tried turning "Anti-alias TTF fonts" and checking how they look like in game?
(I don't remember if antialiasing is used on font preview).
Title: Re: How to get quality Fonts
Post by: henrikes on Fri 29/06/2018 06:49:23
Without Anti alising
(https://i.imgur.com/2fsJNl6.jpg)

With Anti alising
(https://i.imgur.com/aZMSLOh.jpg)
Title: Re: How to get quality Fonts
Post by: Crimson Wizard on Fri 29/06/2018 07:52:29
Images seem to be not working.
Title: Re: How to get quality Fonts
Post by: henrikes on Fri 29/06/2018 22:37:07
previous post updated :)
Title: Re: How to get quality Fonts
Post by: Khris on Fri 29/06/2018 22:46:55
There's a noticeable difference, but it would still be better to post PNGs instead (lossless compression, no artifacts). It's always a good idea to use PNGs over JPGs, but it's kind of crucial when it's all about rendering quality ;)

Disregarding the bad quality of the screenshot, the AA version looks perfectly fine to me.
Title: Re: How to get quality Fonts
Post by: ManicMatt on Fri 29/06/2018 23:18:02
The t's are missing the top outlines at the top, in the AA image. I don't think that's from compression?
Title: Re: How to get quality Fonts
Post by: Crimson Wizard on Fri 29/06/2018 23:24:37
Quote from: ManicMatt on Fri 29/06/2018 23:18:02
The t's are missing the top outlines at the top, in the AA image. I don't think that's from compression?

Hmm, perhaps that's the issue with "Automatic outline" and antialiasing combined.

Okay, I have to admit that this is where my general knowledge of fonts ends. Perhaps someone else may give an advice?
Title: Re: How to get quality Fonts
Post by: Snarky on Sat 30/06/2018 05:55:41
Yeah, I've had a lot of issues with outlining AA fonts. I ended up writing some code to do the outlining manually instead:

http://www.adventuregamestudio.co.uk/forums/index.php?topic=55544.0