SFML community forums

Help => Graphics => Topic started by: Jungletoe on August 15, 2012, 01:44:29 am

Title: sf::Font.setSmooth(false) function equivalent? Small text is blurry.
Post by: Jungletoe on August 15, 2012, 01:44:29 am
The text above my sprites (or any small text around size 8 for that matter...) appears really blurred. I looked around and found this (http://en.sfml-dev.org/forums/index.php?topic=5346.msg35391#msg35391) fix for 1.6, but couldn't find anything for 2.0 now that font.getImage() was removed. How do I set texts and fonts to not be smooth?

(http://24.media.tumblr.com/tumblr_m8rkytQ7Jy1qmy0coo1_1280.png)
Title: Re: sf::Font.setSmooth(false) function equivalent? Small text is blurry.
Post by: Jungletoe on August 15, 2012, 01:50:03 am
Gah, I fixed it by scaling.

I thought it wasn't supposed to work that way? Laurent said that it shouldn't work that way here (http://en.sfml-dev.org/forums/index.php?topic=7153.msg47213#msg47213).
Title: Re: sf::Font.setSmooth(false) function equivalent? Small text is blurry.
Post by: eXpl0it3r on August 15, 2012, 01:56:07 am
Also keep in mind this issue (https://github.com/SFML/SFML/issues/228). ;)
Title: Re: sf::Font.setSmooth(false) function equivalent? Small text is blurry.
Post by: Laurent on August 15, 2012, 10:21:50 am
Quote
I thought it wasn't supposed to work that way?
Do you activate antialiasing?

Can you show a complete and minimal example that reproduces the problem, as well as the solution?