X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ffont.h;h=ed3ecc38f3075498d2051545a38df5ab4c2382fb;hp=cb18e4798b6e7b29ef1863ddc8216a6c759431e1;hb=da44da6f31f97d39ca91c35955e573e76371f2c2;hpb=a69d242f3f00207d6ea7320e6723775f4b0dbfb3 diff --git a/src/lib/font.h b/src/lib/font.h index cb18e4798..ed3ecc38f 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,16 +18,21 @@ */ + #ifndef DCPOMATIC_FONT_H #define DCPOMATIC_FONT_H -#include "font_files.h" + #include #include #include #include #include + +namespace dcpomatic { + + class Font { public: @@ -42,21 +47,12 @@ public: return _id; } - boost::optional file (FontFiles::Variant variant) const { - return _files.get (variant); + boost::optional file () const { + return _file; } - void set_file (FontFiles::Variant variant, boost::filesystem::path file) { - _files.set (variant, file); - Changed (); - } - - FontFiles files () const { - return _files; - } - - void set_files (FontFiles files) { - _files = files; + void set_file (boost::filesystem::path file) { + _file = file; Changed (); } @@ -65,10 +61,14 @@ public: private: /** Font ID, used to describe it in the subtitle content */ std::string _id; - FontFiles _files; + boost::optional _file; }; + bool operator!= (Font const & a, Font const & b); bool operator== (Font const & a, Font const & b); + +} + #endif