summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-13 15:28:52 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-13 15:28:52 +0100
commitf187e4a08ca777c6e3e5de8037d165f9eea262f2 (patch)
treef2cedb7d9a66a80ea749d50f2c8151e5c375707d /src
parent8ca1ad346138f5a02020cb900f43a69e154a23c7 (diff)
Fix STL italic / underline (from master).
Diffstat (limited to 'src')
-rw-r--r--src/stl_binary_writer.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc
index f1afa2c..05a01dc 100644
--- a/src/stl_binary_writer.cc
+++ b/src/stl_binary_writer.cc
@@ -284,6 +284,16 @@ sub::write_stl_binary (
text += "\x8A";
+ /* Turn italic/underline off before the end of this subtitle */
+
+ if (underline) {
+ text += "\x83";
+ }
+
+ if (italic) {
+ text += "\x81";
+ }
+
if (text.length() > 111) {
text = text.substr (111);
}