Fix handling of empty font IDs and default DCP fonts (#2721) (part of #2722).
[dcpomatic.git] / test / hints_test.cc
index a989d3aeb5b0e6c74c23340f1341af6e5c07c1aa..949ba18c0c5abbecba258e68976f03805f1b515a 100644 (file)
@@ -198,7 +198,8 @@ BOOST_AUTO_TEST_CASE (hint_subtitle_mxf_too_big)
                content->text[0]->set_language(dcp::LanguageTag("en-US"));
                film->examine_and_add_content(content);
                BOOST_REQUIRE (!wait_for_jobs());
-               auto const font = content->text[0]->get_font(String::compose("font_%1", i));
+               auto const font = content->text[0]->get_font(String::compose("0_font_%1", i));
+               BOOST_REQUIRE(font);
                font->set_file("build/test/hint_subtitle_mxf_too_big.ttf");
        }