Rotating Alternates

Vasil Stanev
Vasil Stanev Posts: 763
edited June 2023 in Font Technology
I am searching for the code that is used in a font for the following:
I want to have a font that imitates handwriting, with 3-5 alternative versions of all Latin characters, and two consecutive alternates of a letter never appear one after the other - just like the human hand rarely writes the exact same letter twice. Does the size of the set matter in regard to the code?