summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-10-15 22:25:42 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-17 15:34:02 +0200
commit3896560ec6b32574092552e6807bfb413dcb2783 (patch)
tree8cc236ed9c2ab470f796c4763f1630286b96583e /src/lib/util.cc
parent04eb7ba1f2336375ce00fc8bc4dac4fec9a43162 (diff)
Basic and slightly inaccurate support for <Space> in subtitles (#2103).
Adding horizontal space to a Pango layout is hard, and I think this change probably gets it slightly wrong, but it's a step in the right direction.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 78ed8da99..c165a5129 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -406,7 +406,7 @@ DCPOMATIC_ENABLE_WARNINGS
list<StringText> subs;
dcp::SubtitleString ss(
optional<string>(), false, false, false, dcp::Colour(), 42, 1, dcp::Time(), dcp::Time(), 0, dcp::HAlign::CENTER, 0, dcp::VAlign::CENTER, dcp::Direction::LTR,
- "Hello dolly", dcp::Effect::NONE, dcp::Colour(), dcp::Time(), dcp::Time()
+ "Hello dolly", dcp::Effect::NONE, dcp::Colour(), dcp::Time(), dcp::Time(), 0
);
subs.push_back (StringText(ss, 0));
render_text (subs, list<shared_ptr<Font>>(), dcp::Size(640, 480), DCPTime(), 24);