return out;
}
+
+map<string, boost::filesystem::path>
+SubtitleAsset::font_filenames () const
+{
+ map<string, boost::filesystem::path> out;
+ BOOST_FOREACH (Font const& i, _fonts) {
+ if (i.file) {
+ out[i.load_id] = *i.file;
+ }
+ }
+ return out;
+}
+
+
/** Replace empty IDs in any <LoadFontId> and <Font> tags with
* a dummy string. Some systems give errors with empty font IDs
* (see DCP-o-matic bug #1689).
virtual void add (boost::shared_ptr<Subtitle>);
virtual void add_font (std::string id, boost::filesystem::path file) = 0;
std::map<std::string, Data> font_data () const;
+ std::map<std::string, boost::filesystem::path> font_filenames () const;
virtual void write (boost::filesystem::path) const = 0;
virtual std::string xml_as_string () const = 0;