X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ffont.h;h=c1405d0f61c81d1695c95bca5d72009f87f63e43;hp=a6bf61e340c445c25970e620c15ac1d489b7efa4;hb=5a820bb8fae34591be5ac6d19a73461b9dab532a;hpb=9a7b67aee32a40539f29bc2d7017edd4a4f65f11 diff --git a/src/lib/font.h b/src/lib/font.h index a6bf61e34..c1405d0f6 100644 --- a/src/lib/font.h +++ b/src/lib/font.h @@ -23,6 +23,7 @@ #define DCPOMATIC_FONT_H +#include #include #include #include @@ -52,6 +53,10 @@ public: return _id; } + void set_id (std::string id) { + _id = id; + } + boost::optional file () const { return _file; } @@ -61,11 +66,16 @@ public: Changed (); } + boost::optional data() const; + boost::signals2::signal Changed; private: - /** Font ID, used to describe it in the subtitle content */ + /** 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 _data; boost::optional _file; };