/*
- Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
*/
+
#ifndef DCPOMATIC_FONT_H
#define DCPOMATIC_FONT_H
+
#include <libcxml/cxml.h>
#include <boost/optional.hpp>
#include <boost/signals2.hpp>
#include <boost/filesystem.hpp>
#include <string>
+
namespace dcpomatic {
+
class Font
{
public:
explicit Font (cxml::NodePtr node);
+ Font (std::string id, boost::filesystem::path file)
+ : _id (id)
+ , _file (file)
+ {}
+
void as_xml (xmlpp::Node* node);
std::string id () const {
boost::optional<boost::filesystem::path> _file;
};
+
bool operator!= (Font const & a, Font const & b);
bool operator== (Font const & a, Font const & b);
+
}
#endif