Find Liberation Sans with local builds on Fedora.
authorCarl Hetherington <cth@carlh.net>
Tue, 28 Jun 2022 21:34:23 +0000 (23:34 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 30 Jun 2022 22:02:52 +0000 (00:02 +0200)
src/lib/util.cc

index ed0de75959578cdd5016118c6c27f23c1d913b8a..eab9408ce77348c2b8af9bf48b62e4317defc829 100644 (file)
@@ -1121,6 +1121,9 @@ default_font_file ()
        if (!boost::filesystem::exists(liberation_normal)) {
                liberation_normal = "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf";
        }
+       if (!boost::filesystem::exists(liberation_normal)) {
+               liberation_normal = "/usr/share/fonts/liberation-sans/LiberationSans-Regular.ttf";
+       }
 
        return liberation_normal;
 }