update.{cc,h} -> update_checker.{cc,h}.
[dcpomatic.git] / src / lib / subtitle_content.cc
index a10e23cafea324a48fe9333e4858c5b30f294771..2aa982e168e8209fec388933ba291dbf0ff8b983 100644 (file)
@@ -24,6 +24,7 @@
 #include "font.h"
 #include "raw_convert.h"
 #include <libcxml/cxml.h>
+#include <libxml++/libxml++.h>
 #include <boost/foreach.hpp>
 
 #include "i18n.h"
@@ -268,6 +269,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.
        */