From 95f8f075dbf2ddb139116bc7a60958e7b289db0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 15 Oct 2021 03:50:17 +0200 Subject: [PATCH] Load the font you were asked to. --- lib/Canvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Canvas.cpp b/lib/Canvas.cpp index eae4035..cac63ee 100644 --- a/lib/Canvas.cpp +++ b/lib/Canvas.cpp @@ -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;