Fix incorrect preview of italic subtitles (#728).
[dcpomatic.git] / test / srt_subtitle_test.cc
index 4920f0be570d8bf4725704a7964ad45402070c22..759c2720c8f02e5293bd5e264cb3b894ae9f54c3 100644 (file)
@@ -69,7 +69,7 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test2)
        content->set_use_subtitles (true);
        content->set_burn_subtitles (false);
        /* Use test/data/subrip2.srt as if it were a font file  */
-       content->fonts().front()->set_file ("test/data/subrip2.srt");
+       content->fonts().front()->set_file (FontFiles::NORMAL, "test/data/subrip2.srt");
 
        film->make_dcp ();
        wait_for_jobs ();