Sg2.9
different everytime
Recent RSS
different everytime
From:  Doeke
Date:  17. October 2009, 17:40

Hi,

everytime i run the script the fontsize is different, some chracters have a seize of 10 like they should have and others are the deffault 12.
Anyone a solution? Also, is it possible to check if there's a space in the text?
What i want to do is set of every word every character in a different font, like first character of a word helvetica, second character of a word arial etc.

p.s. i use a intel mac and illustrator cs4.
tell me if the script work fine for you plz.

var text = new PointText(new Point(50, 100));
text.content = 'The contents of the point text';
text.characterStyle.tracking = 100;

var xChars = text.content.length;//totaal aantal tekens
var rot = 0;
var temp = 0;

for (var i = 0; i < xChars; i++){

text.range.characters[i].characterStyle.fontSize = temp+10;

if(text.range.characters[i] == " "){
print("spatie");
}
}

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Transform Each 08.01.12