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!


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

Posted: May 4th, 2024, 12:30 pm
by Amirfm
You can use one dummy layer to hold the entire text, than use few other layer with different styles and attach them using position expression to "stitch" them together so they will look like one sentence in one layer.