-
Changing "baselineshift" value according to the biggest word
Hello
I have a problem with an expression.
I would like to write a text with a bigger word, I already applied an expression to center the text.
So when I make a word bigger I need to change the baseline shift on that specific word in order to maintain a correct alignment.
I would like to control the baselineshift with a slider on the biggest word.
But when I enter an expression like :
text.sourceText.style
.setBaselineShift(value)
With the value connected to a slider, it does not work at all.
The font size, color and baselineshift reset.
It is a little hard to explain, so I put an exemple project here.
When you activate the expression in “source text” you will see instantly what I mean.
I think that it is not possible, but just in case I ask.
Thank you in advance.