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

Author Topic: Font quality  (Read 1671 times)

0 Members and 2 Guests are viewing this topic.

yearspassby

  • Newbie
  • *
  • Posts: 6
    • View Profile
Font quality
« on: January 27, 2010, 12:43:35 pm »
Is there a way to improve the font quality ? You can see nearly every pixel and its not looking that sharp.. Is there a way to fix that ?

Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Font quality
« Reply #1 on: January 27, 2010, 12:51:16 pm »
Do you use the same size for both your font and string? Can you show your code?
Laurent Gomila - SFML developer

yearspassby

  • Newbie
  • *
  • Posts: 6
    • View Profile
Font quality
« Reply #2 on: January 27, 2010, 01:01:01 pm »
No, I didnt. I've just loaded the font with its default CharSize and then changed it within the string.. I've set both to 13 now, but its not much better.. Its really looking grainy.

Code: [Select]
MyFont.LoadFromFile("C:\\Windows\\Fonts\\Verdana.ttf");
sf::String MyString;
MyString.SetFont (MyFont);
MyString.SetText ( "test 1 2 3 4 5" );
App.draw (MyString);

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Font quality
« Reply #3 on: January 27, 2010, 01:10:11 pm »
I tried Verdana.ttf with the same text as you and character size of 13, and it looks very good.

Can you show me your complete source code so that I can have the exact same output as you?
Laurent Gomila - SFML developer

 

anything