#include <memory>
#include <string>
#include <vector>
+#include <boost/optional.hpp>
namespace dcp {
void allocate();
std::string font_id(int reel_index, std::string asset_id, std::string font_id) const;
+ std::string default_font_id() const;
+
+ bool has_default_font() const {
+ return static_cast<bool>(_default_font);
+ }
private:
void add_fonts_from_asset(int reel_index, std::shared_ptr<const dcp::SubtitleAsset> asset);
};
std::map<Font, int> _map;
+ boost::optional<Font> _default_font;
};