summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 = "";
}