SFML community forums

Help => Graphics => Topic started by: yearspassby on January 27, 2010, 12:43:35 pm

Title: Font quality
Post by: yearspassby 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.
Title: Font quality
Post by: Laurent 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?
Title: Font quality
Post by: yearspassby 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);
Title: Font quality
Post by: Laurent 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?