FontFeature.ordinalForms constructor

const FontFeature.ordinalForms()

Use ordinal forms for alphabetic glyphs. (ordn)

Some fonts have variants of the alphabetic glyphs intended for use after numbers when expressing ordinals, as in "1st", "2nd", "3rd". This feature enables those alternative glyphs.

This may override other features that substitute glyphs.

{@tool sample} The Piazzolla font supports the ordn feature. It causes alphabetic glyphs to become smaller and superscripted.

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

See also:

Implementation

const FontFeature.ordinalForms()
    : feature = 'ordn',
      value = 1;