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()) {
if (with_dummy) {
asset->add(
std::make_shared<dcp::SubtitleString>(
- optional<std::string>(),
+ font,
false,
false,
false,
0
)
);
+
+ if (!film()->interop()) {
+ /* We must have a LoadFont since we have a Text */
+ font = "font";
+ asset->ensure_font(*font, _default_font);
+ }
}
return asset;