FontFeature.stylisticAlternates constructor

const FontFeature.stylisticAlternates()

Enable stylistic alternates. (salt)

Some fonts have alternative forms that are not tied to a particular purpose (such as being historical forms, or contextually relevant alternatives, or ligatures, etc). This font feature enables these purely stylistic alternatives.

This may override other features that substitute glyphs.

{@tool sample} The Source Code Pro font supports the salt feature. It causes some glyphs to be rendered differently, for example the "a" and "g" glyphs change from their typographically common double-storey forms to simpler single-storey forms, the dollar sign's line changes from discontinuous to continuous (and is angled), and the "0" rendering changes from a center dot to a slash.

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

See also:

Implementation

const FontFeature.stylisticAlternates()
    : feature = 'salt',
      value = 1;