Turn font anti-alias on/off?

Started by , Thu 12/12/2013 12:14:12

Previous topic - Next topic

m0ds

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 :)

Andail

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.

Khris

You can do it using this:
Code: ags
  SetGameOption(OPT_ANTIALIASFONTS, 0);  // 1 to turn on

m0ds

Thank you, it's working well. Never thought about SetGameOption... thanks for that!

SMF spam blocked by CleanTalk