FontFeature.superscripts constructor

const FontFeature.superscripts()

Enable superscripts. (sups)

This feature causes some fonts to change some glyphs to their superscripted form. This may be more than just changing their position. For example, digits might change to lining figures (see FontFeature.liningFigures) in addition to being raised and shrunk.

It typically does not affect all glyphs, and so is not appropriate for generally causing all text to be superscripted.

This may override other features that substitute glyphs.

{@tool sample} The Sorts Mill Goudy font supports the sups feature. It causes digits to be smaller, superscripted, and changes them to lining figures (so they are all the same height).

** See code in examples/api/lib/ui/text/font_feature.font_feature_superscripts.0.dart ** {@end-tool}

See also:

Implementation

const FontFeature.superscripts()
    : feature = 'sups',
      value = 1;