summaryrefslogtreecommitdiff
path: root/src/interop_subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-24 08:48:45 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-24 08:48:45 +0100
commit79cddd181d1fefa930cf4427b896af5c36758f46 (patch)
treec5fab06e1f328d8f39b0b7c7b2fd437149fda0a3 /src/interop_subtitle_asset.h
parentf62f5d4514baecbbb7c6821f64d12d89c6f4c385 (diff)
Stuff.fontfix
Diffstat (limited to 'src/interop_subtitle_asset.h')
-rw-r--r--src/interop_subtitle_asset.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/interop_subtitle_asset.h b/src/interop_subtitle_asset.h
index 41ed83b3..7c727d69 100644
--- a/src/interop_subtitle_asset.h
+++ b/src/interop_subtitle_asset.h
@@ -47,7 +47,7 @@ public:
std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const;
- void add_font (std::string id, boost::filesystem::path file);
+ void add_font (std::string font_id, std::string uuid, boost::filesystem::path file);
Glib::ustring xml_as_string () const;
void write (boost::filesystem::path path) const;
@@ -102,6 +102,24 @@ private:
std::string _language;
std::string _movie_title;
std::list<boost::shared_ptr<InteropLoadFontNode> > _load_font_nodes;
+
+ class Font
+ {
+ public:
+ Font (std::string load_id_, std::string uuid_, boost::filesystem::path file_)
+ : load_id (load_id_)
+ , uuid (uuid_)
+ , data (file_)
+ , file (file_)
+ {}
+
+ std::string load_id;
+ std::string uuid;
+ Data data;
+ mutable boost::optional<boost::filesystem::path> file;
+ };
+
+ std::list<Font> _fonts;
};
}