From ec880edaea8841aab030325d8d14c9dfd5613bfd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 28 Jul 2017 16:27:57 +0100 Subject: Support \fs in ssa. --- src/ssa_reader.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc index da36014..471931f 100644 --- a/src/ssa_reader.cc +++ b/src/ssa_reader.cc @@ -279,8 +279,10 @@ SSAReader::parse_line (RawSubtitle base, string line, int play_res_x, int play_r current.horizontal_position.proportional = raw_convert(bits[1]) / play_res_x; current.vertical_position.reference = sub::TOP_OF_SCREEN; current.vertical_position.proportional = raw_convert(bits[2]) / play_res_y; + } else if (boost::starts_with(style, "\\fs")) { + SUB_ASSERT (style.length() > 3); + current.font_size.set_points (raw_convert(style.substr(3))); } - style = ""; } -- cgit v1.2.3