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");
}
}