Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Aremion

Pages: [1]
1
Graphics / how to disable font smoothing
« on: August 22, 2011, 07:24:48 pm »
I've done it this way:

const_cast<sf::Texture&>(myfont.GetTexture(12)).SetSmooth(false);

2
Graphics / Blurry Font
« on: July 16, 2011, 09:41:00 pm »
Hi!
I loaded a font and created a text. But if I display it, it seems a bit blurry. I found a solution: I take the font and use .GetImage(Size).SetSmooth(false). In order to do that, I have to use const_cast, because GetImage() returns a constant reference. But I read, that you shouldn't do that if it's avoidable.
I use the latest SFML-Version; I've just compiled it.
Also, the documentation says to "sf::Image::SetSmooth": "The smooth filter is disabled by default.", which seems incorrect.
To conclude, is there another way to make the font sharp without the use of const_cast that I have overlooked?

Pages: [1]
anything