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;
SfmlFont(std::string path)
Definition SfmlFont.hpp:30
bool isReady() const override
notice if the font is ready
Definition SfmlFont.hpp:40
const sf::Font & handle() const
Definition SfmlFont.hpp:44
Loaded font data, independent of any IText that references it. Deleting every IText built with a font...
Definition IFont.hpp:22