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

Author Topic: sf::Font.setSmooth(false) function equivalent? Small text is blurry.  (Read 2457 times)

0 Members and 1 Guest are viewing this topic.

Jungletoe

  • Full Member
  • ***
  • Posts: 132
    • View Profile
    • Email
The text above my sprites (or any small text around size 8 for that matter...) appears really blurred. I looked around and found this 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?


Jungletoe

  • Full Member
  • ***
  • Posts: 132
    • View Profile
    • Email
Re: sf::Font.setSmooth(false) function equivalent? Small text is blurry.
« Reply #1 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: sf::Font.setSmooth(false) function equivalent? Small text is blurry.
« Reply #2 on: August 15, 2012, 01:56:07 am »
Also keep in mind this issue. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: sf::Font.setSmooth(false) function equivalent? Small text is blurry.
« Reply #3 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?
Laurent Gomila - SFML developer