29#include <TGUI/Global.hpp>
61 Font(
const std::string&
id);
79 Font(std::shared_ptr<sf::Font> font);
88 Font(
const sf::Font& font);
97 std::shared_ptr<sf::Font>
getFont()
const;
103 std::shared_ptr<sf::Font> m_font;
Font(std::nullptr_t)
Constructor which will explicitly set the font to nullptr.
Font(const sf::Font &font)
Constructor to set a copy of your font.
std::shared_ptr< sf::Font > getFont() const
Get the underlying SFML font.
Font(const std::string &id)
Constructor to create the font from a string (filename by default)
Font(const char *id)
Constructor to create the font from a string (filename by default)
Font()
Default constructor which will set the font to nullptr.
Font(std::shared_ptr< sf::Font > font)
Constructor to share the font directly.
Namespace that contains all TGUI functions and classes.
Definition: Animation.hpp:34