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

Author Topic: Font problems  (Read 1662 times)

0 Members and 1 Guest are viewing this topic.

mrAndersen

  • Newbie
  • *
  • Posts: 3
    • View Profile
Font problems
« on: November 22, 2017, 07:24:47 pm »
Hi! I am developing some small game with SFML, and OpenSans seems to draw not so good as intended to. Here is some screens with 14px Regular and 14px Light versions. First problem i see here is some cut off near bottom of the strings, and of course some strange blur maybe...

Regular

Light
« Last Edit: November 22, 2017, 07:26:28 pm by mrAndersen »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Font problems
« Reply #1 on: November 22, 2017, 08:05:44 pm »
You need to render the text at integer positions. Make sure your view is zoomed at a good factor or not at all and is moved only at integer positions or not at all.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

mrAndersen

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Font problems
« Reply #2 on: November 22, 2017, 08:13:56 pm »
You need to render the text at integer positions. Make sure your view is zoomed at a good factor or not at all and is moved only at integer positions or not at all.

Thanks a lot! That solved problem completely!