diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-04-08 01:04:37 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-04-09 17:23:20 +0200 |
| commit | 1c73379ed8483dcf71c5ccfc459c2c22516a9aef (patch) | |
| tree | 2da4861633a408e4a1fef78cc5cb9f608794bd1d /src/lib/util.cc | |
| parent | 46193d2898321c70626a80785055884396f3e09d (diff) | |
Fix subtitle font handling with in-memory fonts from SMPTE (#2509).v2.16.52
Previously we would fail to make a font available if it came from
a SMPTE MXF. In that case we have a memory buffer containing the
TTF/OTF file but no file; here we add a hack/workaround so that
in-memory font files can be used by FontConfig.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 20a965781..8c5700598 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -466,7 +466,7 @@ LIBDCP_ENABLE_WARNINGS optional<string>(), false, false, false, dcp::Colour(), 42, 1, dcp::Time(), dcp::Time(), 0, dcp::HAlign::CENTER, 0, dcp::VAlign::CENTER, 0, dcp::Direction::LTR, "Hello dolly", dcp::Effect::NONE, dcp::Colour(), dcp::Time(), dcp::Time(), 0 ); - subs.push_back(StringText(ss, 0, {}, dcp::SubtitleStandard::SMPTE_2014)); + subs.push_back(StringText(ss, 0, make_shared<dcpomatic::Font>("foo"), dcp::SubtitleStandard::SMPTE_2014)); render_text (subs, dcp::Size(640, 480), DCPTime(), 24); #endif |
