How to apply different styles for different part of text in expression

Moderators: Disciple, zlovatt

Post Reply
SolidBlock
Posts: 4
Joined: December 16th, 2021, 6:07 am
Location: Shanghai

By using expression, I know how to return a styled text, such as

Code: Select all

text.sourceText.style.setText('red').setFillColor(0xff0000)

But this method will apply same style for the whole text.

So, is there any ways to make different styles for different parts of a text?

User avatar
zlovatt
Posts: 47
Joined: October 31st, 2016, 5:00 pm
Location: Portland
Contact:

Nope!

Post Reply