FontFeature.tabularFigures constructor

const FontFeature.tabularFigures()

Use tabular (monospace) figures. (tnum)

For fonts that have both proportional (varying width) and tabular figures, this enables the tabular figures. Tabular figures are monospaced (all the same width), so that they align in tables of figures.

This is mutually exclusive with FontFeature.proportionalFigures.

The default behavior varies from font to font.

{@tool sample} The Piazzolla font supports the tnum feature. It causes the digits to become uniformly-sized, rather than having variable widths. In this font this is especially noticeable with the digit "1"; with tabular figures enabled, the "1" digit is more widely spaced.

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

See also:

Implementation

const FontFeature.tabularFigures()
    : feature = 'tnum',
      value = 1;