summaryrefslogtreecommitdiff
path: root/src/subtitle_string.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/subtitle_string.cc')
-rw-r--r--src/subtitle_string.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/subtitle_string.cc b/src/subtitle_string.cc
index 66869fd5..a92eac92 100644
--- a/src/subtitle_string.cc
+++ b/src/subtitle_string.cc
@@ -22,10 +22,11 @@
using std::string;
using std::ostream;
+using boost::optional;
using namespace dcp;
SubtitleString::SubtitleString (
- string font,
+ optional<string> font,
bool italic,
Color color,
int size,
@@ -92,7 +93,7 @@ dcp::operator<< (ostream& s, SubtitleString const & sub)
{
s << "\n`" << sub.text() << "' from " << sub.in() << " to " << sub.out() << ";\n"
<< "fade up " << sub.fade_up_time() << ", fade down " << sub.fade_down_time() << ";\n"
- << "font " << sub.font() << ", ";
+ << "font " << sub.font().get_value_or ("[default]") << ", ";
if (sub.italic()) {
s << "italic";