Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
sf::Text and "\n"
Print
Pages: [
1
]
Author
Topic: sf::Text and "\n" (Read 1716 times)
0 Members and 1 Guest are viewing this topic.
Athenian Hoplite
Newbie
Posts: 19
Nenikikamen !
sf::Text and "\n"
«
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
«
Last Edit: May 26, 2020, 12:09:56 am by Athenian Hoplite
»
Logged
"By will of the Athenian People be it resolved:
If anyone rises up against the people for tyranny or join in establishing the tyranny or overthrow the People of the Athenians and the democracy in Athens, whoever kills him who does these things shall be blameless." - Athenian Law 337 BC
Athenian Hoplite
Newbie
Posts: 19
Nenikikamen !
Re: sf::Text and "\n"
«
Reply #1 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 !
«
Last Edit: May 26, 2020, 12:10:10 am by Athenian Hoplite
»
Logged
"By will of the Athenian People be it resolved:
If anyone rises up against the people for tyranny or join in establishing the tyranny or overthrow the People of the Athenians and the democracy in Athens, whoever kills him who does these things shall be blameless." - Athenian Law 337 BC
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
sf::Text and "\n"
anything