diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-08 10:59:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-08 10:59:22 +0000 |
| commit | de004ef24e078906f656cbf4cc790bbfe11ea69c (patch) | |
| tree | f5b86576430275975ad9d8223159e09aeecb6c38 /src/lib/render_subtitles.h | |
| parent | e3e94b79925f085c7176ea85a396c0a56714f56d (diff) | |
Various fixes to subtitle rendering.
Use <span> to mark text up for Pango as this can set up everything,
and is easier than using <b>..</b> etc. Fix the estimation of subtitle
area size to cope with different subtitle sizes. Use show_in_cairo_context
rather than add_to_cairo_context so that colours in the markup are
respected.
Diffstat (limited to 'src/lib/render_subtitles.h')
| -rw-r--r-- | src/lib/render_subtitles.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/render_subtitles.h b/src/lib/render_subtitles.h index f81685a28..f539896ce 100644 --- a/src/lib/render_subtitles.h +++ b/src/lib/render_subtitles.h @@ -25,7 +25,7 @@ class Font; -std::string marked_up (std::list<SubtitleString> subtitles); +std::string marked_up (std::list<SubtitleString> subtitles, int target_height); std::list<PositionImage> render_subtitles ( std::list<SubtitleString>, std::list<boost::shared_ptr<Font> > fonts, dcp::Size, DCPTime ); |
