superscript and subscript

How to write by SpWML

(span)
+(text, lineHeight:1, mT:0)CH
+(subscript)3
+(text, lineHeight:1, mT:0)COO
+(superscript)-

Summary

A block containing superscript and subscript text elements with no child blocks.

By using it as a child block of the span element and combining it with an element whose lineHeight is 1 and mT is 0, you can handle characters in special positions with appropriate placement.


Dart Class Reference

SuperAndSubscriptElement class


SpWML Parameters

  • The common parameters.

  • Parent parameters. However, isSelectable is invalid.

  • baselineCorrection(double). Position correction value. If set, the value will be added to the y coordinate.

  • mag(double). Magnification of font size. The default is 0.6, and 1.0 is the same size as the normal font.