Typography
in
Programming Questions
â˘
2 years ago
Hello
I am writing a patch to generate Typographic designs.
fb = createFont("NimbusSanL", random(10), true);
textFont(fb);
text("We use the function for( ) to create a series of repetitions, here, a repetitive horizontal line formed by an uppercase letter âTâ. The distance between each letter is even and controlled by the values we add to for( ). The for() function needs a beginning, middle and end.", random(500), random(500));
that is the code in question
I want to be able to tell the program to set a line length on paragraphs. I know i can type '\n' for a newline but how can i do this automatically?
eg. linelength = 20 (characters) or 6 (words)
Thanks
Michael Green
1