Antialiasing Truetype fonts

Started by SSH, Fri 20/02/2004 18:55:02

Previous topic - Next topic

SSH

I've got this wierd thing... I've got a truetype font imported which doesn't use outlining and I have the Alias fonts switch on on the global options page... but it doesn't get antialiased in the game! But I have had anti-aliased stuff work in the past.

Some possible buggy reasons:
I have the same font imported at a different size with outlining on
I have used the font on a GUI (although it doesnt AA as Speech either)
I have sprite AA turned off

Anyone else come across something like this? SP1 and all..
12

Ryukage

Quote from: SSH on Fri 20/02/2004 18:55:02
I've got this wierd thing... I've got a truetype font imported which doesn't use outlining and I have the Alias fonts switch on on the global options page... but it doesn't get antialiased in the game! But I have had anti-aliased stuff work in the past.

Some possible buggy reasons:
I have the same font imported at a different size with outlining on
I have used the font on a GUI (although it doesnt AA as Speech either)
I have sprite AA turned off

I've not had such a problem (nor have I gotten around to trying SP1), but as for the reasons you came up with:

If I understand the way AGS imports TTFs correctly, it shouldn't matter that you have the same font imported in another slot.  I think AGS extracts a copy of just the one desired point size, rather than importing the whole TTF file, so it has no concept of two font slots being the same font.

Antialiasing ONLY works when the font is used on a GUI.  It doesn't matter whether it's auto-outlined or not; antialiasing is done on GUI text and only GUI text, otherwise you'd get a pink outline around it.  Also, it's done only when the GUI has an opaque or alpha-channeled background, if the GUI is totally transparent the font is not AAed (again, pink outline issues).

Sprite AA should have no effect on font AA, and CJ would have to be spectacularly daft to have created such a bug accidentally, I believe.  Sprite AA and font AA are done by two totally unrelated third-party modules, so the chances of them interacting are slim to none.

Unfortunately, while I can tell you what probably isn't the problem, I have no idea what is the problem.
Ninja Master Ryukage
"Flipping out and kicking off heads since 1996"

SMF spam blocked by CleanTalk