diff --git a/Source/Parsers/attributedStringConsumer.m b/Source/Parsers/attributedStringConsumer.m index deed10b0a..1dfc4cd38 100644 --- a/Source/Parsers/attributedStringConsumer.m +++ b/Source/Parsers/attributedStringConsumer.m @@ -355,7 +355,7 @@ void GSRTFcolorfg(void *ctxt, int color) void GSRTFsubscript(void *ctxt, int script) { - script = (int) -halfpoints2points(script); + script = (int) (-halfpoints2points(script) / 3.0); if (script != [[CTXT objectForKey: GSscript] intValue]) { @@ -367,7 +367,7 @@ void GSRTFsubscript(void *ctxt, int script) void GSRTFsuperscript(void *ctxt, int script) { - script = (int) halfpoints2points(script); + script = (int) (halfpoints2points(script) / 3.0); if (script != [[CTXT objectForKey: GSscript] intValue]) {