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

Author Topic: Disable font smoothing  (Read 1654 times)

0 Members and 1 Guest are viewing this topic.

Zamoguay

  • Newbie
  • *
  • Posts: 1
    • View Profile
Disable font smoothing
« on: July 15, 2017, 01:42:04 pm »
Can someone tell me if it is possible to disable the font smoothing in SFML?

I have a zoom feature in my program. When the scale is 1:1 the text is OK, but when I zoom in the text is displayed really smoothed.

Thanks!


Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Disable font smoothing
« Reply #1 on: July 16, 2017, 12:39:00 pm »
An option is draw the text (as many as required) to a render texture of the desired resolution and then scale/zoom that.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11018
    • View Profile
    • development blog
    • Email
Re: Disable font smoothing
« Reply #2 on: July 16, 2017, 07:22:24 pm »
Or don't zoom rendered text and instead use a separate view and pick the right font size.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything