X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffont.h;h=a6bf61e340c445c25970e620c15ac1d489b7efa4;hb=9a97c1b4116d7fb80e8ab145c0cc738dbf14d617;hp=b2ae86daff328d208a1e5c59d4f6b2ae83fe4b2f;hpb=f77ec143719c86ddbf098bff6d19fe2a159b8c3e;p=dcpomatic.git diff --git a/src/lib/font.h b/src/lib/font.h index b2ae86daf..a6bf61e34 100644 --- a/src/lib/font.h +++ b/src/lib/font.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2015 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,15 +18,21 @@ */ + #ifndef DCPOMATIC_FONT_H #define DCPOMATIC_FONT_H + #include #include #include #include #include + +namespace dcpomatic { + + class Font { public: @@ -35,6 +41,11 @@ 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 { @@ -58,7 +69,11 @@ private: boost::optional _file; }; + bool operator!= (Font const & a, Font const & b); bool operator== (Font const & a, Font const & b); + +} + #endif