Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Text expression - help

Explorer ,
Dec 02, 2021 Dec 02, 2021

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].

7.jpg

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.

TOPICS
Expressions
118
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 02, 2021 Dec 02, 2021
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines