Copy link to clipboard
Copied
Hello
What i must change to my exression to work fine?
I merge two texts with expression "Name & Surname" and work fine. When i change the font style with expression I take the message [object Object].
What i must change to my exression to work fine?
I want the final text have the name with simple font and the Surname with bold font like this:
Name Surname
Only with expressions please..
Thanks
John K.
Copy link to clipboard
Copied
setStyle() are not concatenated using the + sign. The are simply appended as multiple .setStyle(this) .setStyle(that) .setStyle(more). That aside what you seem to want to do won't work, anyway. There is no way to apply different stylings to substrings with this method. You have to split your stuff on separate layers.
Mylenium
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more