aboutsummaryrefslogtreecommitdiff
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
parentb0190e90b3f9909bf58b8b150efa788bdc9e9e85 (diff)
Font config use correct path for absolute path
m---------depends/mglpp0
-rw-r--r--src/ResourceLoader.cpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/depends/mglpp b/depends/mglpp
-Subproject f273d44d325a50631698865f6b863b4685e0cb2
+Subproject 89ca6494e61ccca06a410db71458c53859cd492
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;
}