Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 12/12/2013 12:14:12

Title: Turn font anti-alias on/off?
Post by: on Thu 12/12/2013 12:14:12
Hello! Is there a way to turn this (font anti-aliasing) on and off by the script?

The manual for 3.2.1. suggests it may be possible;

Quote
firstly, anti-aliasing is significantly slower than normal rendering, so you might want an option to allow the player to turn it off.

Can't for the life of me figure out how to do that other than me setting it in general settings. Nor been able to find any code/threads about it specifically yet. Any help appreciated, thank you!

PS. I want one font anti-aliased and one not, is the basic idea here :)
Title: Re: Turn font anti-alias on/off?
Post by: Andail on Thu 12/12/2013 12:26:08
I have this option in TSP, but I simply use two fonts - one AA and one not - and then the player can choose which one to use for messages.
Title: Re: Turn font anti-alias on/off?
Post by: Khris on Thu 12/12/2013 15:22:52
You can do it using this:
Code (ags) Select
  SetGameOption(OPT_ANTIALIASFONTS, 0);  // 1 to turn on
Title: Re: Turn font anti-alias on/off?
Post by: on Fri 13/12/2013 12:42:12
Thank you, it's working well. Never thought about SetGameOption... thanks for that!