summaryrefslogtreecommitdiff
path: root/src/lib/font.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-16 11:16:48 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-16 11:16:48 +0000
commited8491f8c5710ad8901021a12c3b187e29201f71 (patch)
tree42ad0034a8fb163f203e5339a4504b5191c141bc /src/lib/font.h
parenta5902c6008fd20392c7248c30bc469310122c527 (diff)
Save and load subtitle font details.
Diffstat (limited to 'src/lib/font.h')
-rw-r--r--src/lib/font.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/font.h b/src/lib/font.h
index 59d983277..7a26eefc9 100644
--- a/src/lib/font.h
+++ b/src/lib/font.h
@@ -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);