FontFeature.stylisticSet constructor

FontFeature.stylisticSet(int value)

Select a stylistic set.

Fonts may have up to 20 stylistic sets, numbered 1 through 20.

See also:

Implementation

factory FontFeature.stylisticSet(int value) {
  assert(value >= 1);
  assert(value <= 20);
  return FontFeature('ss${value.toString().padLeft(2, "0")}');
}