SFML community forums

General => Feature requests => Topic started by: NeWsOfTzzz on August 20, 2008, 02:21:09 pm

Title: Width of a sf::String?
Post by: NeWsOfTzzz on August 20, 2008, 02:21:09 pm
Is there any way to find out the width of a text? For example to cut it if it gets too long or to display a cursor?
Title: Width of a sf::String?
Post by: Daazku on August 20, 2008, 02:28:55 pm
Check the string documentation and the tutorial..
Title: Width of a sf::String?
Post by: Laurent on August 20, 2008, 02:32:04 pm
For cursor stuff, check the 1.4 (SVN) documentation and tutorial.
Title: Width of a sf::String?
Post by: NeWsOfTzzz on August 20, 2008, 02:32:08 pm
Just as you say it I found it! I posted too fast :/
It was not in the tutorial though! ;)

I didn't see the "GetRect()" function even though i looked 2 times over all functions of the string class -.-

Can be closed, sorry :p

ATM I'm using 1.3 though..