+ std::set<string> names;
+ for (auto const& subtitle: file.subtitles()) {
+ for (auto const& line: subtitle.lines) {
+ for (auto const& block: line.blocks) {
+ names.insert(block.font.get_value_or(""));
+ }
+ }
+ }
+
+ for (auto name: names) {
+ /* Make a font for each family name that somebody might later
+ * ask about.
+ */
+ only_text()->add_font(make_shared<Font>(name));
+ }
+