FontFeature.oldstyleFigures constructor
const
FontFeature.oldstyleFigures()
Use old style figures. (onum
)
Some fonts have variants of the figures (e.g. the digit 9) that, when this feature is enabled, render with descenders under the baseline instead of being entirely above the baseline. If the default digits are lining figures, this allows the selection of digits that fit better with mixed case (uppercase and lowercase) text.
This overrides FontFeature.slashedZero and may conflict with FontFeature.liningFigures.
{@tool sample}
The Piazzolla font supports the onum
feature. It causes
digits to extend below the baseline.
** See code in examples/api/lib/ui/text/font_feature.font_feature_oldstyle_figures.0.dart ** {@end-tool}
See also:
Implementation
const FontFeature.oldstyleFigures()
: feature = 'onum',
value = 1;