FontFeature.randomize constructor Null safety
Randomize the alternate forms used in text. (rand
)
For example, this can be used with suitably-prepared handwriting fonts to vary the forms used for each character, so that, for instance, the word "cross-section" would be rendered with two different "c"s, two different "o"s, and three different "s"s.
Contextual alternates (FontFeature.contextualAlternates) provide a similar effect in some fonts, without using randomness.
See also:
Implementation
const FontFeature.randomize() : feature = 'rand', value = 1;