-
- /** Font ID, or empty for the default font */
- boost::optional<std::string> id;
- boost::optional<boost::filesystem::path> file;
+
+ std::string id () const {
+ return _id;
+ }
+
+ void set_id (std::string id) {
+ _id = id;
+ }
+
+ boost::optional<boost::filesystem::path> file () const {
+ return _file;
+ }
+
+ void set_file (boost::filesystem::path file) {
+ _file = file;
+ Changed ();
+ }
+
+ boost::optional<dcp::ArrayData> data() const;
+
+ boost::signals2::signal<void()> Changed;
+
+private:
+ /** Font ID, used to describe it in the subtitle content; could be either a
+ * font family name or an ID from some DCP font XML.
+ */
+ std::string _id;
+ boost::optional<dcp::ArrayData> _data;
+ boost::optional<boost::filesystem::path> _file;