-
Change font size or scale of lines based on number of characters in each line
Change font size or scale of lines based on number of characters in the line. I have text over multiple keyframes (markers) to be used as captions and want to create some randomness to the font size.
I would be using 3 sizes:
>7, 120
between 7 and 12, 100
<12, 80For example in the following text the two lines would end up with different font sizes (or scale):
My own
experienceI tried creating this code with just 2 varibles to keep it simple to start with but
lines = thisLayer.text.sourceText.split(“/\r\n|\r|\n/”);
for (i = 0; i < lines.length; i++) {
if (lines[i].length < 9) {
[120, 120];
} else {
[100, 100];
}