SFML community forums
Help => Graphics => Topic started 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)
-
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.
-
Rounding the position down to integer coordinates solved the issue. Thanks!