Fix STL italic / underline (from master).
authorCarl Hetherington <cth@carlh.net>
Tue, 13 Sep 2016 14:28:52 +0000 (15:28 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 13 Sep 2016 14:28:52 +0000 (15:28 +0100)
src/stl_binary_writer.cc

index f1afa2cca7eab0852c108ffef6cc4ef3e69aa663..05a01dc8e5d4dabb2632f0c3b8e2d68bfb9c2e08 100644 (file)
@@ -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);
                        }