Page 1 of 1

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

Posted: December 16th, 2021, 6:15 am
by SolidBlock

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?


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

Posted: December 17th, 2021, 10:42 am
by zlovatt

Nope!