summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h8
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;