SFML community forums

Help => Graphics => Topic started by: Sakurazaki on June 08, 2013, 01:50:31 am

Title: Stroke on text / font
Post by: Sakurazaki on June 08, 2013, 01:50:31 am
Hi there,

I'd like to know if there is any possibility, builtin function or some technique
to easily draw a stroke around each letter of a text.

So when i write white color "A" around it will be drawn a x width sf::color stroke.
Something like Outline inside Shapes.

thanks!
Title: Re: Stroke on text / font
Post by: zsbzsb on June 08, 2013, 03:40:08 am
This feature is not build into SFML, however you can fake the effect by drawing the text 5 times. 1 time left, 1 time up, 1 time right, 1 time down and 1 time in the center. Offset in each direction and draw the outline color. Then draw in the middle with your fill color.
Title: Re: Stroke on text / font
Post by: Sakurazaki on June 08, 2013, 02:14:18 pm
I see, thanks!