summaryrefslogtreecommitdiff
path: root/src/subtitle_string.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-14 22:44:23 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-14 22:44:23 +0000
commit861117816d557cd048d56b26f8903ac26a94b395 (patch)
tree269649a3b7e3ed2f3f6dedd46e167921da388958 /src/subtitle_string.h
parente58cec97a15d1d5dd198dfb145e1d7daf6be9641 (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.h11
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 */