コード例 #1
0
 public void DcinemaSmpteColorAndItalic()
 {
     var target = new DCinemaSmpte2010();
     var subtitle = new Subtitle();
     subtitle.Paragraphs.Add(new Paragraph("<font color=\"#ff0000\"><i>Red</i></font>", 1000, 5000));
     string text = target.ToText(subtitle, "title");
     Assert.IsTrue(text.Contains("<dcst:Font Italic=\"yes\" Color=\"FFFF0000\">Red</dcst:Font>"));
 }
コード例 #2
0
 public void DcinemaSmpteItalic()
 {
     var target = new DCinemaSmpte2010();
     var subtitle = new Subtitle();
     subtitle.Paragraphs.Add(new Paragraph("<i>Italic</i>", 1000, 5000));
     string text = target.ToText(subtitle, "title");
     Assert.IsTrue(text.Contains("<dcst:Font Italic=\"yes\">Italic</dcst:Font>"));
 }