summaryrefslogtreecommitdiff
path: root/src/lib/render_subtitles.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-08 10:59:22 +0000
committerCarl Hetherington <cth@carlh.net>2016-11-08 10:59:22 +0000
commitde004ef24e078906f656cbf4cc790bbfe11ea69c (patch)
treef5b86576430275975ad9d8223159e09aeecb6c38 /src/lib/render_subtitles.h
parente3e94b79925f085c7176ea85a396c0a56714f56d (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.h2
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
);