-
Random Character Font Style
I am attempting to enable an expression that lets me randomly (from a preselected set of fonts) change the character style/font. I have the expression set to cycle between a couple different styles of the same font, but I wanted it to randomly change by character and not the entire text. Each letter of the word will randomly flip through a font in no particular order.
Here is the current expression that I’m working with…based on an expression I pulled from a tutorial. Any help is much appreciated!
var Array = [
“CROOKED-Bold”,
“CROOKED-Regular”,
];
hold = 0.09;
seed = Math.floor(time/hold);
seedRandom(seed,true);
r = Math.round(random(1));
style.setFont(Array[r]);