SFML community forums

Help => Graphics => Topic started by: Athenian Hoplite on May 25, 2020, 10:15:09 pm

Title: sf::Text and "\n"
Post by: Athenian Hoplite on May 25, 2020, 10:15:09 pm
Hi,

When playing around with sf::Text today I noticed that when adding "\n" to the text's string it's width increased by 1. Is this always the case ? Or is it related to character size or character spacing in any way ?

Thanks in advance,
AH
Title: Re: sf::Text and "\n"
Post by: Athenian Hoplite on May 25, 2020, 10:30:35 pm
Scrap that. I was adding a "\n" in the middle of the text so that its was actually letter spacing that was making this happen.
My bad !