summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-28 16:27:57 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-28 16:28:05 +0100
commitec880edaea8841aab030325d8d14c9dfd5613bfd (patch)
treeb942015f7f40b735f0667e1da60404d3386056a7 /src
parent0c7a195358580f65c9fcfd5342e01a70544c1405 (diff)
Support \fs in ssa.1.0-more-ssa-tags
Diffstat (limited to 'src')
-rw-r--r--src/ssa_reader.cc4
1 files changed, 3 insertions, 1 deletions
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<float>(bits[1]) / play_res_x;
current.vertical_position.reference = sub::TOP_OF_SCREEN;
current.vertical_position.proportional = raw_convert<float>(bits[2]) / play_res_y;
+ } else if (boost::starts_with(style, "\\fs")) {
+ SUB_ASSERT (style.length() > 3);
+ current.font_size.set_points (raw_convert<int>(style.substr(3)));
}
-
style = "";
}