+ boost::filesystem::path font_file;
+ try {
+ font_file = shared_path () / "LiberationSans-Regular.ttf";
+ } catch (boost::filesystem::filesystem_error& e) {
+ /* Hack: try the debian/ubuntu location if getting the shared path failed */
+ font_file = "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf";
+ }
+