Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Any newline characters for text class implemented right now?  (Read 10044 times)

0 Members and 1 Guest are viewing this topic.

Notion

  • Newbie
  • *
  • Posts: 17
    • View Profile
Any newline characters for text class implemented right now?
« on: April 05, 2021, 12:04:25 pm »
Hey everyone,

for C++ the /n character inserts a line break into a text element. When I try it in C# its a "/n" in plain text and doesnt change the format. Any way to line break by inserting a character or do I have to use a second text object?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Any newline characters for text class implemented right now?
« Reply #1 on: April 05, 2021, 10:19:51 pm »
It's \n, not /n.
Laurent Gomila - SFML developer

Notion

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Any newline characters for text class implemented right now?
« Reply #2 on: April 17, 2021, 12:21:32 am »
Oh. Yeah. Embarrassing. Thanks this solved my problem. I think I need to start a new account so people dont think I'm the idiot I am lol. Still, thanks for taking time to answer something as basic as that. :)