-
- /** 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;
+ }
+
+ boost::optional<boost::filesystem::path> file (FontFiles::Variant variant) const {
+ return _files.get (variant);
+ }
+
+ void set_file (FontFiles::Variant variant, boost::filesystem::path file) {
+ _files.set (variant, file);
+ Changed ();
+ }
+
+ FontFiles files () const {
+ return _files;
+ }
+
+ void set_files (FontFiles files) {
+ _files = files;
+ Changed ();
+ }
+
+ boost::signals2::signal<void()> Changed;
+
+private:
+ /** Font ID, used to describe it in the subtitle content */
+ std::string _id;
+ FontFiles _files;