diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/reel_writer.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index a7e3097f3..c8d848933 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -366,7 +366,11 @@ ReelWriter::create_reel (list<ReferencedReelAsset> const & refs, list<shared_ptr boost::filesystem::path liberation_normal; try { - liberation_normal = shared_path () / "LiberationSans-Regular.ttf"; + liberation_normal = shared_path() / "LiberationSans-Regular.ttf"; + if (!boost::filesystem::exists (liberation_normal)) { + /* Hack for unit tests */ + liberation_normal = shared_path() / "fonts" / "LiberationSans-Regular.ttf"; + } } catch (boost::filesystem::filesystem_error& e) { } |
