aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-09-11 10:31:58 +0200
committerdec05eba <dec05eba@protonmail.com>2023-09-11 10:31:58 +0200
commit9f6519500219384ad3fe93647b00bae4b3609ba3 (patch)
treeb5de96f83b27aae6a2fa9f66550332da7600f021 /src
parentb0190e90b3f9909bf58b8b150efa788bdc9e9e85 (diff)
Font config use correct path for absolute path
Diffstat (limited to 'src')
-rw-r--r--src/ResourceLoader.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}