FontFeature.notationalForms constructor

const FontFeature.notationalForms([
  1. int value = 1
])

Display alternative glyphs for numerals (alternate annotation forms). (nalt)

Replaces glyphs used in numbering lists (e.g. 1, 2, 3...; or a, b, c...) with notational variants that might be more typographically interesting.

Fonts sometimes support multiple alternatives, and the argument selects the set to use (a positive integer, or 0 to disable the feature). The default set if none is specified is 1.

{@tool sample} The Gothic A1 font supports several notational variant sets via the nalt feature.

Set 1 changes the spacing of the glyphs. Set 2 parenthesizes the latin letters and reduces the numerals to subscripts. Set 3 circles the glyphs. Set 4 parenthesizes the digits. Set 5 uses reverse-video circles for the digits. Set 7 superscripts the digits.

The code below shows how to select set 3.

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

See also:

Implementation

const FontFeature.notationalForms([this.value = 1])
    : feature = 'nalt',
      assert(value >= 0);