Look in another place for Liberation Sans on Fedora 41. main
authorCarl Hetherington <cth@carlh.net>
Fri, 29 Nov 2024 20:04:38 +0000 (21:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 29 Nov 2024 20:13:22 +0000 (21:13 +0100)
src/lib/util.cc

index 8b767cd15094d283bf11312638ef7f28d14be2ee..b71ce8581b041a0355015396e8dd8a281da2853b 100644 (file)
@@ -1054,6 +1054,10 @@ default_font_file ()
        if (!dcp::filesystem::exists(liberation_normal)) {
                liberation_normal = "/usr/share/fonts/liberation-sans/LiberationSans-Regular.ttf";
        }
+       if (!dcp::filesystem::exists(liberation_normal)) {
+               /* Fedora 41 puts it here */
+               liberation_normal = "/usr/share/fonts/liberation-sans-fonts/LiberationSans-Regular.ttf";
+       }
 
        return liberation_normal;
 }