From bc118b663b0582cf4afdce3000beb8bac35b16ef Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 5 Apr 2016 00:22:32 +0100 Subject: Basic untested support for bold in subtitles. --- src/subtitle_string.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/subtitle_string.h') 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 + Copyright (C) 2012-2016 Carl Hetherington 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 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 _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 -- cgit v1.2.3