Various fixes to subtitle rendering.
authorCarl Hetherington <cth@carlh.net>
Tue, 8 Nov 2016 10:59:22 +0000 (10:59 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 8 Nov 2016 10:59:22 +0000 (10:59 +0000)
commitde004ef24e078906f656cbf4cc790bbfe11ea69c
treef5b86576430275975ad9d8223159e09aeecb6c38
parente3e94b79925f085c7176ea85a396c0a56714f56d
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.
ChangeLog
src/lib/render_subtitles.cc
src/lib/render_subtitles.h
test/render_subtitles_test.cc