diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-20 23:49:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-20 23:49:48 +0100 |
| commit | c6665c157bdb6903661d21c571c7d112b54ad8fd (patch) | |
| tree | 81910900fb9bcee8958674fef3b1fb70f115d14d /test/test.cc | |
| parent | 2b522d0382a6d4534f1504123a9d16700fe50f0a (diff) | |
Accept fonts as data blocks rather than files.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index bace2326..69772e98 100644 --- a/test/test.cc +++ b/test/test.cc @@ -345,8 +345,7 @@ make_simple_with_interop_subs (boost::filesystem::path path) boost::filesystem::create_directory (path / "subs"); dcp::ArrayData data(4096); - data.write (path / "subs" / "font.ttf"); - subs->add_font ("afont", path / "subs" / "font.ttf"); + subs->add_font ("afont", data); subs->write (path / "subs" / "subs.xml"); shared_ptr<dcp::ReelSubtitleAsset> reel_subs(new dcp::ReelSubtitleAsset(subs, dcp::Fraction(24, 1), 240, 0)); |
