31
System / Re: Absolute Time
« on: September 15, 2015, 06:05:36 pm »
Okay thank you, I'll try to do things differently then.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Calculating a character position is trickier than just accumulating the glyphs' widths. For this reason, there's a sf::Text::getCharacterPos function which gives you what you want. Call it for every position (from 0 to text size), and when result.x becomes greater than your limit, insert a \n. And start again after the line break.