SFML community forums
Help => Graphics => Topic started by: czerwonymoskit on August 11, 2022, 08:51:40 am
-
How to set an outline for text in sfml 2.0? I don't see such a method in the documentation? setOutline?
-
Text outlines were added (setOutlineThickness & setOutlineColor) in SFML 2.4 exactly 6 years ago, any reason you don't want to use a more recent version of SFML?
Anyway, if you can't update to 2.5, you can make an outline by drawing the same text 8 times around your text with 1 (or more) pixel offset in each direction, or create an outline in a fragment shader if you know some GLSL.
-
Now, in the middle of the project, I don't want to change the version. I followed your advice and looped 8 times - it works. I have an outline... thanks
:)