Handle fonts for ccaps coming from DCP content (#2525).
[dcpomatic.git] / src / lib / dcp_examiner.cc
index 6586e6e81f86e0adabcd61f18c6b4b2f85187720..9c4f899c6d0fd6697e70e0cc1238856bbc3116d8 100644 (file)
@@ -230,6 +230,9 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant)
 
                        LOG_GENERAL("Closed caption %1 of reel %2 found", ccap->id(), reel->id());
 
+                       for (auto const& font: ccap->asset()->font_data()) {
+                               reel_fonts.push_back(make_shared<dcpomatic::Font>(font.first, font.second));
+                       }
                }
 
                if (reel->main_markers ()) {