Base class for text implementations that depend on the backend.
Definition BackendText.hpp:39
virtual void setString(const String &string)=0
Changes the text.
virtual void setFillColor(const Color &color)=0
Changes the color of the text.
virtual void setCharacterSize(unsigned int characterSize)=0
Sets the size of the characters.
virtual void setOutlineThickness(float thickness)=0
Changes the thickness of the text outline.
virtual void setOutlineColor(const Color &color)=0
Changes the color of the text outline.
virtual Vector2f getSize()=0
Returns the size of the text.
virtual Vector2f findCharacterPos(std::size_t index) const =0
Returns the top-left position of the character at the provided index.
virtual void setStyle(TextStyles style)=0
Changes the text style.
virtual ~BackendTextBase()=default
Virtual destructor.
virtual void setFont(const Font &font)=0
Changes the font used by the text.
Wrapper for text styles.
Definition TextStyle.hpp:58