Friday, September 12, 2008

Antialiased fonts support in libtcod 1.4

hanks to Mingos who prompted me to add support to PNG fonts with an alpha channel, libtcod 1.4 will be able to render antialiased fonts. I've always been sceptical about this being possible and useful. I was wrong. Thanks to a huge optimization in the flush function (the "True colors" sample jumped from 170 frames per second to 300 on my laptop...), not only it works, but it works fast ! Concerning the usefulness, just look at the screenshot and see how smoothed fonts look fine :)