SFML community forums

Help => Graphics => Topic started by: alwayslearning on April 11, 2010, 09:09:51 pm

Title: Question about sf::string 1.6
Post by: alwayslearning on April 11, 2010, 09:09:51 pm
Firstly, I'd like to say, sfml is quite good.  I was using HGE and decided to make the switch last week and haven't had a single regret.

I have a few questions though.
Is there a way to modify the colors of individual characters within a sf::string?

Is there a trivial method to retrieve the widest character of font set at a specific size?

And lastly a trivial method of allowing me to edit strings?  Such as insert and remove characters? (otherwise, I'd have to use a std::list<char> to do it).

Thanks in advance.
Title: Question about sf::string 1.6
Post by: Laurent on April 11, 2010, 09:21:31 pm
Quote
Is there a way to modify the colors of individual characters within a sf::string?

No, you have to use one sf::String per character.

Quote
Is there a trivial method to retrieve the widest character of font set at a specific size?

Nothing trivial ;)

Quote
And lastly a trivial method of allowing me to edit strings? Such as insert and remove characters? (otherwise, I'd have to use a std::list<char> to do it).

std::string ?
Title: Question about sf::string 1.6
Post by: alwayslearning on April 11, 2010, 09:46:23 pm
Opps, meant string.  Thanks for the timely responses.