29 #include <TGUI/Config.hpp> 30 #include <SFML/Graphics/Font.hpp> 49 Font& operator=(
const Font&) =
default;
57 Font(std::nullptr_t =
nullptr);
66 Font(
const std::string&
id);
84 Font(
const std::shared_ptr<sf::Font>& font);
93 Font(
const sf::Font& font);
101 Font(
const void* data, std::size_t sizeInBytes);
116 const std::string& getId()
const;
125 std::shared_ptr<sf::Font> getFont()
const;
134 operator std::shared_ptr<sf::Font>()
const;
141 operator bool()
const;
186 const sf::Glyph& getGlyph(std::uint32_t codePoint,
unsigned int characterSize,
bool bold,
float outlineThickness = 0)
const;
203 float getKerning(std::uint32_t first, std::uint32_t second,
unsigned int characterSize)
const;
216 float getLineSpacing(
unsigned int characterSize)
const;
222 std::shared_ptr<sf::Font> m_font;
231 #endif // TGUI_TEXTURE_HPP Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
TGUI_CONSTEXPR bool operator!=(const Vector2f &left, const Vector2f &right)
Overload of binary operator ==.
Definition: Vector2f.hpp:224
TGUI_CONSTEXPR bool operator==(const Vector2f &left, const Vector2f &right)
Overload of binary operator ==.
Definition: Vector2f.hpp:216