Fix font handling for DCP subtitles.
[dcpomatic.git] / src / lib / dcp_decoder.cc
index ad7d3e11277910fb62eb27611f0472a6ed97a94c..7e2001e0ef9b75d4d145d89403048e351928b241 100644 (file)
@@ -308,7 +308,9 @@ DCPDecoder::pass_texts (
                                        strings.clear ();
                                }
 
-                               strings.push_back (*is);
+                               dcp::SubtitleString is_copy = *is;
+                               is_copy.set_font(id_for_font_in_reel(is_copy.font().get_value_or(""), _reel - _reels.begin()));
+                               strings.push_back(is_copy);
                        }
 
                        /* XXX: perhaps these image subs should also be collected together like the string ones are;