FontFeature.historicalForms constructor

const FontFeature.historicalForms()

Use historical forms. (hist)

Some fonts have alternatives for letters whose forms have changed through the ages. In the Latin alphabet, this is common for example with the long-form "s" or the Fraktur "k". This feature enables those alternative glyphs.

This does not enable legacy ligatures, only single-character alternatives. To enable historical ligatures, use FontFeature.historicalLigatures.

This feature may override other glyph-substitution features.

{@tool sample} The Cardo font supports the hist feature specifically for the letter "s": it changes occurrences of that letter for the glyph used by U+017F LATIN SMALL LETTER LONG S.

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

See also:

Implementation

const FontFeature.historicalForms()
    : feature = 'hist',
      value = 1;