- auto fm = c->font_data();
- for (auto const& i: fm) {
- _fonts.push_back (FontData(i.first, i.second));
+ /* The fonts that are included in content's file; if it's interop there will be none
+ * (as the fonts are held in separate assets).
+ */
+ auto fonts_in_asset = c->font_data();
+
+ /* Fonts specified in the TextContent */
+ list<shared_ptr<dcpomatic::Font>> fonts_in_content;
+ for (auto i: content->text) {
+ auto this_fonts = i->fonts();
+ std::copy(this_fonts.begin(), this_fonts.end(), std::back_inserter(fonts_in_content));