FontFeature.contextualAlternates constructor

const FontFeature.contextualAlternates()

Enable contextual alternates. (calt)

With this feature enabled, specific glyphs may be replaced by alternatives based on nearby text.

{@tool sample} The Barriecito font supports the calt feature. It causes some letters in close proximity to other instances of themselves to use different glyphs, to give the appearance of more variation in the glyphs, rather than having each letter always use a particular glyph.

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

See also:

Implementation

const FontFeature.contextualAlternates()
    : feature = 'calt',
      value = 1;