15#include <SFML/Graphics.hpp>
33 }
catch (
const sf::Exception &e) {
34 std::cerr <<
"Failed to load font: " << e.what() << std::endl;
41 return _font.has_value();
49 std::optional<sf::Font> _font;
Sfml Font class - owns the loaded font. SfmlText only references it (sf::Text itself already takes a ...
Definition SfmlFont.hpp:27
SfmlFont(std::string path)
Definition SfmlFont.hpp:30
bool isReady() const override
Definition SfmlFont.hpp:40
const sf::Font & handle() const
Definition SfmlFont.hpp:44