X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fdcp_subtitle_test.cc;fp=test%2Fdcp_subtitle_test.cc;h=640f6510efd71e11b1448646bb2634467cdd9cda;hb=5a820bb8fae34591be5ac6d19a73461b9dab532a;hp=fb8888d0c6859edccdec7e665c1d97a49c9a5710;hpb=9a7b67aee32a40539f29bc2d7017edd4a4f65f11;p=dcpomatic.git diff --git a/test/dcp_subtitle_test.cc b/test/dcp_subtitle_test.cc index fb8888d0c..640f6510e 100644 --- a/test/dcp_subtitle_test.cc +++ b/test/dcp_subtitle_test.cc @@ -238,7 +238,7 @@ BOOST_AUTO_TEST_CASE (test_font_override) film->set_interop(true); BOOST_REQUIRE_EQUAL(content->text.size(), 1U); - content->text.front()->add_font(make_shared("theFontId", "test/data/Inconsolata-VF.ttf")); + content->text.front()->get_font("theFontId")->set_file("test/data/Inconsolata-VF.ttf"); make_and_verify_dcp (film, { dcp::VerificationNote::Code::INVALID_STANDARD }); check_file (subtitle_file(film).parent_path() / "font_0.ttf", "test/data/Inconsolata-VF.ttf");