out += "underline=\"single\" ";
}
out += "size=\"" + dcp::raw_convert<string>(i.size_in_pixels(target_height) * 72 * 1024 / 96) + "\" ";
- out += "alpha=\"" + dcp::raw_convert<string>(int(floor(fade_factor * 65535))) + "\" ";
+ /* Between 1-65535 inclusive, apparently... */
+ out += "alpha=\"" + dcp::raw_convert<string>(int(floor(fade_factor * 65534)) + 1) + "\" ";
out += "color=\"#" + i.colour().to_rgb_string() + "\">";
out += i.text ();
out += "</span>";
}
if (subtitles.front().effect() == dcp::BORDER) {
- cout << "border it " << (subtitles.front().outline_width * target.width) << " " << fade_factor << ".\n";
/* Border effect; stroke the subtitle with a large (arbitrarily chosen) line width */
set_source_rgba (context, subtitles.front().effect_colour(), fade_factor);
context->set_line_width (subtitles.front().outline_width * target.width / 2048.0);