X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsubtitle_node.cc;h=e221b43b1c3a875db4d9163181c2b66d7b234797;hb=beb6a305c07342b0e4611d94e95f9d18416beb27;hp=f53878b6453e565fe04d3de21b454317dbdcff80;hpb=2ae92dcc97765deb2845dd07a338858aeb375cb3;p=libdcp.git diff --git a/src/subtitle_node.cc b/src/subtitle_node.cc index f53878b6..e221b43b 100644 --- a/src/subtitle_node.cc +++ b/src/subtitle_node.cc @@ -31,19 +31,19 @@ using boost::shared_ptr; using boost::lexical_cast; using namespace dcp; -SubtitleNode::SubtitleNode (boost::shared_ptr node, int tcr) +SubtitleNode::SubtitleNode (boost::shared_ptr node, int tcr, string font_id_attribute) { in = Time (node->string_attribute ("TimeIn"), tcr); out = Time (node->string_attribute ("TimeOut"), tcr); list f = node->node_children ("Font"); for (list::iterator i = f.begin(); i != f.end(); ++i) { - font_nodes.push_back (shared_ptr (new FontNode (*i, tcr))); + font_nodes.push_back (shared_ptr (new FontNode (*i, tcr, font_id_attribute))); } list t = node->node_children ("Text"); for (list::iterator i = t.begin(); i != t.end(); ++i) { - text_nodes.push_back (shared_ptr (new TextNode (*i, tcr))); + text_nodes.push_back (shared_ptr (new TextNode (*i, tcr, font_id_attribute))); } fade_up_time = fade_time (node, "FadeUpTime", tcr);