How to disable the anti-aliasing of the text? (Question).
« on: 22 September 2013, 19:08:16 »
 :) Hi all, I am pond in using: TGUI-v0.5, excellent GUI library for SFML, but I want to disable anti-aliasing, because I will use small text and display is not very good. I use a font Arial, size 12.

Here a sample as the text is generated by the program.


This is the result I want: no anti-aliasing.


Thanks for your answers, Roberth.

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: How to disable the anti-aliasing of the text? (Question).
« Reply #1 on: 22 September 2013, 19:10:51 »
This is a limitation in sfml.

"Currently, fonts are always anti-aliased and this cannot be changed."
https://github.com/LaurentGomila/SFML/issues/254

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: How to disable the anti-aliasing of the text? (Question).
« Reply #2 on: 22 September 2013, 19:13:38 »
After reading that issue again, it might have been fixed already.
Does it only happen when creating a tgui::Label or also when just drawing an sf::Text? Because I can only help in the first situation.

Re: How to disable the anti-aliasing of the text? (Question).
« Reply #3 on: 22 September 2013, 19:41:35 »
This is an option that SFML, it Might Have Been fixed already.

It happens all TGUI.

Can there be any other way?

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: How to disable the anti-aliasing of the text? (Question).
« Reply #4 on: 22 September 2013, 19:46:59 »
I doubt that it is going to be a bug in tgui if it happens on all widgets and not in only one widget.
If it doesn't work with sf::Text then there is nothing I can do. All widgets just use sf::Text internally.