String of glyphs rendered with a font.
nlohmann::json serialize() override
Serializes object.
Text & operator=(Text &&)
Move assignment operator.
void deserialize(const nlohmann::json &json) override
Deserializes from object.
const std::string & get_font() const
Get font ID.
const std::string & get_text() const
Get text.
Alignment get_alignment() const
Get the text alignment.
void create(std::string_view text, const float size, const std::string &font, const graphics::Colour &colour, Alignment alignment=Alignment::LEFT)
Creates the rendered text.
graphics::Colour m_colour
Text colour.