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

Author Topic: Is there a way to improve sf::Text fullscreen scaling?  (Read 1654 times)

0 Members and 1 Guest are viewing this topic.

smguyk

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Is there a way to improve sf::Text fullscreen scaling?
« on: November 28, 2015, 02:31:11 am »
My pxel art game is 1280x720 and when I launch it in fullscreen mode (1920x1080) everything scales nicely, except my sf::Texts that become noticably blurry.

I've used dozens of different font files but the blurriness is always there.

The thing is that when I use sprites that have the fons as a texture they scale perfectly and are sharp but copying all letters and numbers from the font file would be a lot of work...

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Is there a way to improve sf::Text fullscreen scaling?
« Reply #1 on: November 30, 2015, 12:40:13 am »
You are scaling sf::Text objects?
Try changing the size of the characters in the text objects instead of scaling, if possible.
Other option is to render texts to a render texture and then scale that.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*