X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Frender_text.cc;h=cbc19efc950300e784cd07a14d4515722de2f808;hb=df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc;hp=63ff2b74c916273adf714542f524b93d217ea368;hpb=9cb73fbc0fa4643612f01665bc6d9fc430656f32;p=dcpomatic.git diff --git a/src/lib/render_text.cc b/src/lib/render_text.cc index 63ff2b74c..cbc19efc9 100644 --- a/src/lib/render_text.cc +++ b/src/lib/render_text.cc @@ -51,11 +51,11 @@ static FcConfig* fc_config = 0; static list > fc_config_fonts; string -marked_up (list subtitles, int target_height, float fade_factor) +marked_up (list subtitles, int target_height, float fade_factor) { string out; - BOOST_FOREACH (TextCaption const & i, subtitles) { + BOOST_FOREACH (StringText const & i, subtitles) { out += " context, dcp::Colour colour, floa * at the same time and with the same fade in/out. */ static PositionImage -render_line (list subtitles, list > fonts, dcp::Size target, DCPTime time, int frame_rate) +render_line (list subtitles, list > fonts, dcp::Size target, DCPTime time, int frame_rate) { /* XXX: this method can only handle italic / bold changes mid-line, nothing else yet. @@ -365,12 +365,12 @@ render_line (list subtitles, list > fonts, dcp::Si * @param frame_rate DCP frame rate. */ list -render_text (list subtitles, list > fonts, dcp::Size target, DCPTime time, int frame_rate) +render_text (list subtitles, list > fonts, dcp::Size target, DCPTime time, int frame_rate) { - list pending; + list pending; list images; - BOOST_FOREACH (TextCaption const & i, subtitles) { + BOOST_FOREACH (StringText const & i, subtitles) { if (!pending.empty() && fabs (i.v_position() - pending.back().v_position()) > 1e-4) { images.push_back (render_line (pending, fonts, target, time, frame_rate)); pending.clear ();