baselineOffset property

String? baselineOffset
getter/setter pair

The text's vertical offset from its normal position.

Text with SUPERSCRIPT or SUBSCRIPT baseline offsets is automatically rendered in a smaller font size, computed based on the font_size field. Changes in this field don't affect the font_size. Possible string values are:

  • "BASELINE_OFFSET_UNSPECIFIED" : The text's baseline offset is inherited from the parent.
  • "NONE" : The text is not vertically offset.
  • "SUPERSCRIPT" : The text is vertically offset upwards (superscript).
  • "SUBSCRIPT" : The text is vertically offset downwards (subscript).

Implementation

core.String? baselineOffset;