summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-25 23:12:22 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-25 23:12:22 +0200
commit184bdd25573eaf398aac683efb12c0d2f4e676f7 (patch)
treec43895cadfd2d8fc31835e0adaea8fcd69fb3fbd /src
parent3e07c602fdbce92a2562980ebefb39a8df95eefe (diff)
Add SubtitleString::unset_font.
Diffstat (limited to 'src')
-rw-r--r--src/subtitle_string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subtitle_string.h b/src/subtitle_string.h
index 7e84d103..8e798d8e 100644
--- a/src/subtitle_string.h
+++ b/src/subtitle_string.h
@@ -129,6 +129,10 @@ public:
_font = id;
}
+ void unset_font () {
+ _font = boost::optional<std::string>();
+ }
+
void set_size (int s) {
_size = s;
}