features method

List<FontFeature> features({
  1. bool tabular = true,
  2. bool slashedZero = false,
})

OpenType features for this font. Tabular figures are on by default (calculator display, keys, history and settings values all align).

Implementation

List<FontFeature> features({bool tabular = true, bool slashedZero = false}) {
  final zero = slashedZero && hasSlashedZero;
  if (tabular && zero) return _tabularZero;
  if (tabular) return tabularFigures;
  if (zero) return _zeroOnly;
  return const [];
}