summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-05-11 13:50:57 +0200
committerCarl Hetherington <cth@carlh.net>2023-05-12 22:11:06 +0200
commit83d63bb331190db4372de4d0aaf8413c51f1eee4 (patch)
tree1fed31a4b045fb1d586b2db445474d2d923b7845 /src/lib/dcp_examiner.cc
parentff02c27b53222592e394d7cde1c904b27a211488 (diff)
Handle fonts for ccaps coming from DCP content (#2525).
Not dealing with them calls all sort of chaos as described in the bug report.
Diffstat (limited to 'src/lib/dcp_examiner.cc')
-rw-r--r--src/lib/dcp_examiner.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc
index 6586e6e81..9c4f899c6 100644
--- a/src/lib/dcp_examiner.cc
+++ b/src/lib/dcp_examiner.cc
@@ -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 ()) {