FontFeature.fractions constructor

const FontFeature.fractions()

Use ligatures to represent fractions. (afrc)

When this feature is enabled (and the font supports it), sequences of digits separated by U+002F SOLIDUS character (/) or U+2044 FRACTION SLASH (⁄) are replaced by ligatures that represent the corresponding fraction.

This feature may imply the FontFeature.numerators and FontFeature.denominator features.

{@tool sample} The Ubuntu Mono font supports the frac feature. It causes digits around slashes to be turned into dedicated fraction glyphs. This contrasts to the effect seen with FontFeature.alternativeFractions.

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

See also:

Implementation

const FontFeature.fractions()
    : feature = 'frac',
      value = 1;