summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-23 01:23:02 +0200
committerCarl Hetherington <cth@carlh.net>2025-05-26 21:51:18 +0200
commitfd84c01c1c562093e99127a3a82f33d401a07655 (patch)
tree6fbe22ec52747fc9b6e21b2d94fe3c46d2cca81f
parent79eb2832c2f2fd2c9c99ab1cc307ea62ad50b77e (diff)
Fix finding Liberation Sans when running from the source tree.
-rw-r--r--src/lib/util.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 5ac75134d..ac562afc1 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -1053,6 +1053,10 @@ default_font_file()
return liberation;
}
+#ifdef DCPOMATIC_DEBUG
+ return directory_containing_executable().parent_path().parent_path().parent_path() / "fonts" / "LiberationSans-Regular.ttf";
+#endif
+
return resources_path() / "LiberationSans-Regular.ttf";
}