summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-26 19:32:47 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-26 19:32:47 +0100
commitc383f1bf2c14b7c7cfbf07399a4d90c99fc31c4c (patch)
tree94dce26d62f09c122262b6d52bc5831835ca597a /src/lib
parenta3e6ab3c2c1397ba5bbd5a35ce41aa791501a2f9 (diff)
Fonts change appearance of subtitles if they are burnt in.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/subtitle_content.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/subtitle_content.cc b/src/lib/subtitle_content.cc
index a10e23caf..29c610d83 100644
--- a/src/lib/subtitle_content.cc
+++ b/src/lib/subtitle_content.cc
@@ -268,6 +268,13 @@ SubtitleContent::identifier () const
<< "_" << raw_convert<string> (subtitle_x_offset())
<< "_" << raw_convert<string> (subtitle_y_offset());
+ /* XXX: I suppose really _fonts shouldn't be in here, since not all
+ types of subtitle content involve fonts.
+ */
+ BOOST_FOREACH (shared_ptr<Font> f, _fonts) {
+ s << f->file().get_value_or ("Default");
+ }
+
/* The language is for metadata only, and doesn't affect
how this content looks.
*/