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

Author Topic: Question about sf::string 1.6  (Read 1384 times)

0 Members and 1 Guest are viewing this topic.

alwayslearning

  • Newbie
  • *
  • Posts: 12
    • View Profile
Question about sf::string 1.6
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Question about sf::string 1.6
« Reply #1 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 ?
Laurent Gomila - SFML developer

alwayslearning

  • Newbie
  • *
  • Posts: 12
    • View Profile
Question about sf::string 1.6
« Reply #2 on: April 11, 2010, 09:46:23 pm »
Opps, meant string.  Thanks for the timely responses.

 

anything