diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-06-02 22:21:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-06-05 00:48:55 +0200 |
| commit | 742961d2c2cd446fcd96033403b35b0ae111401e (patch) | |
| tree | bb7ae53ffd16d6df90bc2987189a749c97d92d84 /src/lib/reel_writer.cc | |
| parent | cc39c4f57fc48c581a25dc4c37f26adf95278914 (diff) | |
Give filler subtitle reels <LoadFont> nodes in SMPTE (#2547).
Diffstat (limited to 'src/lib/reel_writer.cc')
| -rw-r--r-- | src/lib/reel_writer.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index aae2a6273..fc78740bb 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -823,6 +823,7 @@ shared_ptr<dcp::SubtitleAsset> ReelWriter::empty_text_asset (TextType type, optional<DCPTextTrack> track, bool with_dummy) const { shared_ptr<dcp::SubtitleAsset> asset; + optional<string> font; auto lang = film()->subtitle_languages(); if (film()->interop()) { @@ -857,7 +858,7 @@ ReelWriter::empty_text_asset (TextType type, optional<DCPTextTrack> track, bool if (with_dummy) { asset->add( std::make_shared<dcp::SubtitleString>( - optional<std::string>(), + font, false, false, false, @@ -880,6 +881,12 @@ ReelWriter::empty_text_asset (TextType type, optional<DCPTextTrack> track, bool 0 ) ); + + if (!film()->interop()) { + /* We must have a LoadFont since we have a Text */ + font = "font"; + asset->ensure_font(*font, _default_font); + } } return asset; |
