diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-24 12:24:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-24 12:24:16 +0100 |
| commit | 715410f7b36075b39d712479476e83a28042ed7e (patch) | |
| tree | 46615302452a954c9d1593b1ba16a705380ad933 /src/subtitle_string.cc | |
| parent | 2c8270716ac21c05b5f7ce0e45096a1e9e62a619 (diff) | |
Support underlining of subtitles.
Diffstat (limited to 'src/subtitle_string.cc')
| -rw-r--r-- | src/subtitle_string.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/subtitle_string.cc b/src/subtitle_string.cc index 8e106c6d..5a22475c 100644 --- a/src/subtitle_string.cc +++ b/src/subtitle_string.cc @@ -45,6 +45,7 @@ SubtitleString::SubtitleString ( optional<string> font, bool italic, bool bold, + bool underline, Colour colour, int size, float aspect_adjust, @@ -64,6 +65,7 @@ SubtitleString::SubtitleString ( : _font (font) , _italic (italic) , _bold (bold) + , _underline (underline) , _colour (colour) , _size (size) , _aspect_adjust (aspect_adjust) @@ -101,6 +103,7 @@ dcp::operator== (SubtitleString const & a, SubtitleString const & b) a.font() == b.font() && a.italic() == b.italic() && a.bold() == b.bold() && + a.underline() == b.underline() && a.colour() == b.colour() && a.size() == b.size() && fabs (a.aspect_adjust() - b.aspect_adjust()) < ASPECT_ADJUST_EPSILON && @@ -138,6 +141,10 @@ dcp::operator<< (ostream& s, SubtitleString const & sub) s << "normal, "; } + if (sub.underline()) { + s << "underlined, "; + } + s << "size " << sub.size() << ", aspect " << sub.aspect_adjust() << ", colour " << sub.colour() << ", vpos " << sub.v_position() << ", valign " << ((int) sub.v_align()) << ", hpos " << sub.h_position() << ", halign " << ((int) sub.h_align()) |
