Add SubtitleString::unset_font.
authorCarl Hetherington <cth@carlh.net>
Tue, 25 Aug 2020 21:12:22 +0000 (23:12 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 Aug 2020 21:12:22 +0000 (23:12 +0200)
src/subtitle_string.h

index 7e84d1033a067be8033fa2a4cca777e9ac49ccb0..8e798d8ec6fdcb19ebe638efcf7dbba41d2e2ea8 100644 (file)
@@ -129,6 +129,10 @@ public:
                _font = id;
        }
 
+       void unset_font () {
+               _font = boost::optional<std::string>();
+       }
+
        void set_size (int s) {
                _size = s;
        }