SFML community forums
Bindings - other languages => DotNet => Topic started by: MarthKoopa on July 29, 2013, 08:41:36 am
-
Tried all kinds of different fonts, font sizes, locations, and even versions up to 2.1... but font never looks good.
Is there something I'm missing?
-
Can you show your code, as well as a screenshot of the blurry text?
-
Tried all kinds of different fonts, font sizes, locations, and even versions up to 2.1... but font never looks good.
Is there something I'm missing?
It happened to me when I started using SFML: I tried using a [-1, 1] view, and loading e.g. 0.5 size fonts. Make sure to load large fonts (30 "pt" at least) and scale them down if necessary. That's because fonts are textures, not vector-based.
-
Ok, it seems to be related to issue #228 (https://github.com/SFML/SFML/issues/228).
-
Have been trying this but it's not making them much better. Still not displaying clearly.
Be sure when you scale down that your texture has smoothing set to true.
-
I'm not seeing an option for setting a smooth option on text or fonts?
You apply it to the texture instance your text is using, not to the font or text themselves.
http://www.sfml-dev.org/documentation/2.0/classsf_1_1Texture.php#a0c3bd6825b9a99714f10d44179d74324
-
Forget about the smooth option, it is not applicable to fonts/texts.
All you have to know is in #228.