Hi! I want to be able to scale text size and spacing/leading proportionally to avoid overlaps of text. I’d like to be able to scale the text from it’s current size in 5 columns to a bigger text size in for example 3 columns. Is there a clever way to do this?
Much appreciated
PFont font1;
String [] words = {"vinterjazz", "01-24 feb. 2019", "www.jazz.dk"};
void setup() {
println(words.length);
size (700, 1000);
font1 = loadFont ("Akkurat-Bold-18.vlw");
textAlign(LEFT);
frameRate(1);
}
void draw() {
background (0);
textFont(font1, 16);
for (int y = 20; y < height; y = y + 20) {
for (int x = 10; x < width; x = x + 140) {
fill(255);
text(words [int(random(words.length))], x, y );
}
}
}