X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsubtitle_content.cc;h=da3b97e2ffd3942f87f452181b97fe5315de8f63;hb=1858190cff2f960f3d1f0a5cc02c69da86088f5b;hp=a10e23cafea324a48fe9333e4858c5b30f294771;hpb=5ce9c7026366d82233e8852b9b949362ed2f6191;p=dcpomatic.git diff --git a/src/lib/subtitle_content.cc b/src/lib/subtitle_content.cc index a10e23caf..da3b97e2f 100644 --- a/src/lib/subtitle_content.cc +++ b/src/lib/subtitle_content.cc @@ -24,7 +24,9 @@ #include "font.h" #include "raw_convert.h" #include +#include #include +#include #include "i18n.h" @@ -268,6 +270,13 @@ SubtitleContent::identifier () const << "_" << raw_convert (subtitle_x_offset()) << "_" << raw_convert (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 f, _fonts) { + s << f->file().get_value_or ("Default"); + } + /* The language is for metadata only, and doesn't affect how this content looks. */