Compare commits

...

1 commit

Author SHA1 Message Date
Dag-Erling Smørgrav
95f8f075db Load the font you were asked to. 2021-10-17 21:50:35 +02:00

View file

@ -190,7 +190,7 @@ sf::Texture Canvas::loadTexture(std::string_view path) {
sf::Font Canvas::loadFont(std::string_view path) {
sf::Font font;
if (!font.loadFromFile("retro_font.ttf")) {
if (!font.loadFromFile(std::string{ path })) {
exitFailure(fmt::format("Failed to load font {}", path));
}
return font;