void setFont(const Font &font)
Set the text's font.
Vector2f findCharacterPos(std::size_t index) const
Return the position of the index-th character.
FloatRect getLocalBounds() const
Get the local bounding rectangle of the entity.
unsigned int getCharacterSize() const
Get the character size.
Text(const String &string, const Font &font, unsigned int characterSize=30)
Construct the text from a string, font and size.
void setString(const String &string)
Set the text's string.
Style
Enumeration of the string drawing styles.
@ Regular
Regular characters, no style.
@ StrikeThrough
Strike through characters.
const String & getString() const
Get the text's string.
const Color & getColor() const
Get the global color of the text.
FloatRect getGlobalBounds() const
Get the global bounding rectangle of the entity.
void setStyle(Uint32 style)
Set the text's style.
const Font * getFont() const
Get the text's font.
void setCharacterSize(unsigned int size)
Set the character size.
void setColor(const Color &color)
Set the global color of the text.