SFML community forums

Help => Graphics => Topic started by: dk123 on August 30, 2016, 02:26:16 pm

Title: Text set outline results in uneven outlines
Post by: dk123 on August 30, 2016, 02:26:16 pm
Hi, I've been testing out the outline feature shipped with sfml 2.4, but I'm noticing uneven outlines.
I've set my outline colour to black (0,0,0,255) and an outline thickness of 1.5, but as you can see in the screenshot, the outline thicknesses are uneven (even within the same letter)

Title: Re: Text set outline results in uneven outlines
Post by: Laurent on August 30, 2016, 02:46:10 pm
First make sure that your final text position has integer coordinates (check your current view, the text position, its origin, the viewport, ...). You'll always get artifacts when drawing stuff at decimal pixel positions. Then try integer outline thickness; it's not required, but since it's a new feature, there may be bugs.
Title: Re: Text set outline results in uneven outlines
Post by: dk123 on August 31, 2016, 03:38:57 am
Rounding the position down to integer coordinates solved the issue. Thanks!