FontFeature.liningFigures constructor

const FontFeature.liningFigures()

Use lining figures. (lnum)

Some fonts have digits that, like lowercase latin letters, have both descenders and ascenders. In some situations, especially in conjunction with capital letters, this leads to an aesthetically questionable irregularity. Lining figures, on the other hand, have a uniform height, and align with the baseline and the height of capital letters. Conceptually, they can be thought of as "capital digits".

This feature may conflict with FontFeature.oldstyleFigures.

{@tool sample} The Sorts Mill Goudy font supports the lnum feature. It causes digits to fit more seamlessly with capital letters.

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

See also:

Implementation

const FontFeature.liningFigures()
    : feature = 'lnum',
      value = 1;