Rearrange subtitle font management.
[dcpomatic.git] / test / render_subtitles_test.cc
index 5774c8e9af7e111dc4d5140eb68c39fc33627b2f..d850062c2a8893168e3a32e4dc546b61510d4509 100644 (file)
 
 */
 
+
 /** @file  test/render_text_test.cc
  *  @brief Check markup of subtitles for rendering.
  *  @ingroup feature
  */
 
+
 #include "lib/render_text.h"
+#include "lib/string_text.h"
 #include <dcp/subtitle_string.h>
 #include <boost/test/unit_test.hpp>
 
+
 static void
 add (std::list<StringText>& s, std::string text, bool italic, bool bold, bool underline)
 {
@@ -54,7 +58,8 @@ add (std::list<StringText>& s, std::string text, bool italic, bool bold, bool un
                                dcp::Time (),
                                0
                                ),
-                       2
+                       2,
+                       std::shared_ptr<dcpomatic::Font>()
                        )
                );
 }