+2016-06-24 c.hetherington <cth@carlh.net>
+
+ * Support underlined subtitles.
+
2016-06-22 Carl Hetherington <cth@carlh.net>
* Version 2.8.13 released.
ffmpeg_options = {}
return (('ffmpeg-cdist', 'aab2fb1', ffmpeg_options),
- ('libdcp', 'e6bbf12'),
+ ('libdcp', 'fe3bb91'),
('libsub', '23a1a03'))
def configure_options(target):
string marked_up;
bool italic = false;
bool bold = false;
+ bool underline = false;
BOOST_FOREACH (dcp::SubtitleString const & i, subtitles) {
if (i.italic() != italic) {
if (i.italic()) {
bold = i.bold ();
}
+ if (i.underline() != underline) {
+ if (i.underline()) {
+ marked_up += "<u>";
+ } else {
+ marked_up += "</u>";
+ }
+ underline = i.underline ();
+ }
+
marked_up += i.text ();
}
marked_up += "</b>";
}
+ if (underline) {
+ marked_up += "</u>";
+ }
+
layout->set_markup (marked_up);
/* Compute fade factor */
string(TEXT_FONT_ID),
j.italic,
j.bold,
+ j.underline,
/* force the colour to whatever is configured */
content()->colour(),
j.font_size.points (72 * 11),