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

Moderators: Disciple, zlovatt

Post Reply
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'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
Posts: 47
Joined: October 31st, 2016, 5:00 pm
Location: Toronto


User avatar
Posts: 1
Joined: April 15th, 2024, 7:34 am

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.
Post Reply