-
Text expression with double change (font style and text)
Hello,
I spend a lot of time on this trouble but i can find the right solution.The trouble is : I have 2 array, one for my value text and one for my font style.
i have only one of two change work. when i have the text i can’t change the style and inversely too. I try to have the change of the text in another layer and the style in the main. but same, i can’t find the solution.
I’m using javascript expression and not the legacy system.
Thanks for your help.
var array = ;
var myFont = ;
var t = Math.floor(random(1,6));
var f = Math.floor(random(1,4));
var textstyle = style.setFont(myFont );
var textcontent = style.setText(array );
myText.sourceText = array .style.setFont(myFont );
myText;