summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-11-02 22:47:57 +0000
committerCarl Hetherington <cth@carlh.net>2015-11-02 22:47:57 +0000
commit9bf2cf3509380663e6943f6b0d22dbec6002c332 (patch)
tree86999381629818072353ffb15d78f5815efabf69 /test
parent8a673bcf0cd26268899face63723c0f201fabcce (diff)
Fix incorrect preview of italic subtitles (#728).
This requires fonts to be configured with their italic versions so that the italic font can be given to FontConfig and hence used to render text. Bold font configuration is also added here although bold subtitles aren't yet supported.
Diffstat (limited to 'test')
-rw-r--r--test/srt_subtitle_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/srt_subtitle_test.cc b/test/srt_subtitle_test.cc
index 4920f0be5..759c2720c 100644
--- a/test/srt_subtitle_test.cc
+++ b/test/srt_subtitle_test.cc
@@ -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 ();