summaryrefslogtreecommitdiff
path: root/src/subtitle_string.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-05 00:22:32 +0100
committerCarl Hetherington <cth@carlh.net>2016-04-05 00:22:32 +0100
commitbc118b663b0582cf4afdce3000beb8bac35b16ef (patch)
treeac058ad2af7c88705606e7fe139d4d1a4ff80ac2 /src/subtitle_string.h
parentbc7089956cefc9f8528918f8a5d48174ab680f13 (diff)
Basic untested support for bold in subtitles.
Diffstat (limited to 'src/subtitle_string.h')
-rw-r--r--src/subtitle_string.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/subtitle_string.h b/src/subtitle_string.h
index eaea94c0..bd71b8da 100644
--- a/src/subtitle_string.h
+++ b/src/subtitle_string.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -40,6 +40,7 @@ public:
SubtitleString (
boost::optional<std::string> font,
bool italic,
+ bool bold,
Colour colour,
int size,
float aspect_adjust,
@@ -65,6 +66,10 @@ public:
return _italic;
}
+ bool bold () const {
+ return _bold;
+ }
+
Colour colour () const {
return _colour;
}
@@ -163,6 +168,8 @@ private:
boost::optional<std::string> _font;
/** true if the text is italic */
bool _italic;
+ /** true if the weight is bold, false for normal */
+ bool _bold;
/** text colour */
Colour _colour;
/** Size in points as if the screen height is 11 inches, so a 72pt font