#include <cairomm/cairomm.h>
#include <pangomm.h>
#include <boost/foreach.hpp>
+#include <boost/make_shared.hpp>
#include <iostream>
using std::list;
using std::cerr;
using std::make_pair;
using boost::shared_ptr;
+using boost::make_shared;
using boost::optional;
static FcConfig* fc_config = 0;
/* ...and add a bit more for luck */
height += target.height / 11;
- shared_ptr<Image> image (new Image (AV_PIX_FMT_RGBA, dcp::Size (target.width, height), false));
+ shared_ptr<Image> image = make_shared<Image> (AV_PIX_FMT_RGBA, dcp::Size (target.width, height), false);
image->make_black ();
#ifdef DCPOMATIC_HAVE_FORMAT_STRIDE_FOR_WIDTH
string marked_up;
bool italic = false;
+ bool bold = false;
BOOST_FOREACH (dcp::SubtitleString const & i, subtitles) {
if (i.italic() != italic) {
if (i.italic()) {
italic = i.italic ();
}
+ if (i.bold() != bold) {
+ if (i.bold()) {
+ marked_up += "<b>";
+ } else {
+ marked_up += "</b>";
+ }
+ bold = i.bold ();
+ }
+
marked_up += i.text ();
}
marked_up += "</i>";
}
+ if (bold) {
+ marked_up += "</b>";
+ }
+
layout->set_markup (marked_up);
/* Compute fade factor */