X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fdcp_subtitle_test.cc;h=679325a91ef158462549309abedfd2dbaa69a654;hb=fe933ebb2c55b4235fcba5d02af2ba91c272fc88;hp=fb8888d0c6859edccdec7e665c1d97a49c9a5710;hpb=7647290fbaa81e25875758597f7cbbeca19f80bc;p=dcpomatic.git diff --git a/test/dcp_subtitle_test.cc b/test/dcp_subtitle_test.cc index fb8888d0c..679325a91 100644 --- a/test/dcp_subtitle_test.cc +++ b/test/dcp_subtitle_test.cc @@ -186,8 +186,8 @@ BOOST_AUTO_TEST_CASE (dcp_subtitle_test4) auto film = new_test_film2 ("dcp_subtitle_test4", {content, content2}); film->set_interop (true); - content->only_text()->add_font (shared_ptr (new Font ("font1"))); - content2->only_text()->add_font (shared_ptr (new Font ("font2"))); + content->only_text()->add_font(make_shared("font1")); + content2->only_text()->add_font(make_shared("font2")); make_and_verify_dcp (film, { dcp::VerificationNote::Code::INVALID_STANDARD }); @@ -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");