diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-15 22:25:42 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-17 15:34:02 +0200 |
| commit | 3896560ec6b32574092552e6807bfb413dcb2783 (patch) | |
| tree | 8cc236ed9c2ab470f796c4763f1630286b96583e /src/lib/render_text.h | |
| parent | 04eb7ba1f2336375ce00fc8bc4dac4fec9a43162 (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/render_text.h')
| -rw-r--r-- | src/lib/render_text.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/render_text.h b/src/lib/render_text.h index d1c8c7aee..07a97bb40 100644 --- a/src/lib/render_text.h +++ b/src/lib/render_text.h @@ -27,7 +27,7 @@ namespace dcpomatic { class Font; } -std::string marked_up (std::list<StringText> subtitles, int target_height, float fade_factor); +std::string marked_up (std::list<StringText> subtitles, int target_height, float fade_factor, std::string font_name); std::list<PositionImage> render_text ( std::list<StringText>, std::list<std::shared_ptr<dcpomatic::Font> > fonts, dcp::Size, dcpomatic::DCPTime, int ); |
