diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-21 16:13:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-21 16:13:22 +0100 |
| commit | b56b008e2ad86bd2c29a42390891a32ae658d6c4 (patch) | |
| tree | 1b40a20756da219dd495f1b67ecea37f8cccf8ce /src/subtitle_asset.h | |
| parent | f902811342bb9f72bb11e2658aea14cfe8b04c64 (diff) | |
Recurse into font nodes and pick up details of italics.
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 6a04bed3..04154a45 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -53,6 +53,7 @@ public: std::string id; int size; + boost::optional<bool> italic; std::list<boost::shared_ptr<SubtitleNode> > subtitle_nodes; std::list<boost::shared_ptr<FontNode> > font_nodes; @@ -73,6 +74,7 @@ class Subtitle public: Subtitle ( std::string font, + bool italic, int size, Time in, Time out, @@ -84,6 +86,10 @@ public: return _font; } + bool italic () const { + return _italic; + } + Time in () const { return _in; } @@ -104,6 +110,7 @@ public: private: std::string _font; + bool _italic; int _size; Time _in; Time _out; @@ -133,6 +140,7 @@ private: void examine_font_node (boost::shared_ptr<FontNode> font_node, std::list<boost::shared_ptr<FontNode> >& current_font_nodes); std::string id_from_font_nodes (std::list<boost::shared_ptr<FontNode> > const & font_nodes) const; int size_from_font_nodes (std::list<boost::shared_ptr<FontNode> > const & font_nodes) const; + bool italic_from_font_nodes (std::list<boost::shared_ptr<FontNode> > const & font_nodes) const; std::string _subtitle_id; std::string _movie_title; |
