Skip to main content
Cameraman84
Known Participant
December 2, 2021
Question

Text expression - help

  • December 2, 2021
  • 1 reply
  • 114 views

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.

This topic has been closed for replies.

1 reply

Mylenium
Legend
December 2, 2021

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