From 9f6519500219384ad3fe93647b00bae4b3609ba3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 11 Sep 2023 10:31:58 +0200 Subject: Font config use correct path for absolute path --- src/ResourceLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ResourceLoader.cpp b/src/ResourceLoader.cpp index a120096..d503f14 100644 --- a/src/ResourceLoader.cpp +++ b/src/ResourceLoader.cpp @@ -28,7 +28,7 @@ namespace QuickMedia { // If absolute, use the path; otherwise use fc-match to find the font static bool find_font(const std::string &font_name, std::string &font_filepath_result) { - if(get_config().font.latin.find('/') != std::string::npos) { + if(font_name[0] == '/') { font_filepath_result = font_name; return true; } -- cgit v1.2.3