diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-14 22:44:23 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-14 22:44:23 +0000 |
| commit | 861117816d557cd048d56b26f8903ac26a94b395 (patch) | |
| tree | 269649a3b7e3ed2f3f6dedd46e167921da388958 /src/subtitle_string.h | |
| parent | e58cec97a15d1d5dd198dfb145e1d7daf6be9641 (diff) | |
Switch subtitle string font specs to be the font ID; split SubtitleContent into Interop and SMPTE.
Diffstat (limited to 'src/subtitle_string.h')
| -rw-r--r-- | src/subtitle_string.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/subtitle_string.h b/src/subtitle_string.h index b313e82b..512a1b5b 100644 --- a/src/subtitle_string.h +++ b/src/subtitle_string.h @@ -26,6 +26,7 @@ #include "types.h" #include "dcp_time.h" +#include <boost/optional.hpp> #include <string> namespace dcp { @@ -37,7 +38,7 @@ class SubtitleString { public: SubtitleString ( - std::string font, + boost::optional<std::string> font, bool italic, Color color, int size, @@ -52,8 +53,8 @@ public: Time fade_down_time ); - /** @return font name */ - std::string font () const { + /** @return font ID */ + boost::optional<std::string> font () const { return _font; } @@ -122,8 +123,8 @@ public: } private: - /** font name */ - std::string _font; + /** font ID */ + boost::optional<std::string> _font; /** true if the text is italic */ bool _italic; /** text colour */ |
