Save and load subtitle font details.
[dcpomatic.git] / src / lib / font.h
index 59d9832778cc69f0ced6312e6a4d3ee3211ad7b6..7a26eefc9227f0f11554a9c9d9b5cfa4aa182fe7 100644 (file)
@@ -17,6 +17,7 @@
 
 */
 
+#include <libcxml/cxml.h>
 #include <boost/optional.hpp>
 #include <boost/filesystem.hpp>
 #include <string>
@@ -25,10 +26,18 @@ class Font
 {
 public:
        Font () {}
+
        Font (std::string id_)
                : id (id_) {}
+
+       Font (cxml::NodePtr node);
+
+       void as_xml (xmlpp::Node* node);
        
        /** Font ID, or empty for the default font */
        boost::optional<std::string> id;
        boost::optional<boost::filesystem::path> file;
 };
+
+bool
+operator!= (Font const & a, Font const & b);