Rearrange subtitle font management.
[dcpomatic.git] / test / dcp_subtitle_test.cc
index fb8888d0c6859edccdec7e665c1d97a49c9a5710..640f6510efd71e11b1448646bb2634467cdd9cda 100644 (file)
@@ -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<dcpomatic::Font>("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");