Auto-scale a text line in a multi-lines text layer

Moderators: Disciple, zlovatt

Post Reply
Posts: 1
Joined: May 21st, 2021, 2:08 am


I have an issue and I wonder if you could help me.
I'll try to explain, my English is not perfect sorry.

I have a text layer with 5 lines. By line I mean I hit enter 4 times :

Bla bla bla bla bla
bla bla bla
bla bla bla bla bla bla bla
bla bla bla

I need to scale each line to have a nice alignement.
I succeed to do that with five text layer and the expression SourceRecAtTime() combined to the scale of the layer 2-3-4 and 5. The number 1 being my master.

But now I need to have only one text layer (easier to use for my journalists)... but still 5 lines and the nice alignement.
So I precomposed my text five times and extract each line. From now I can scale each line (and auto move on Y axis) to have a nice result.

But if I want to do it automatically, I need to know which height is doing each line.
And now is my problem.
How to do a SourceRecAtTime() on just one line ?
I tried and tried to duplicate my text and to subtract the line I need to measure it.

If anyone has an idea.
Thank you.

Posts: 7
Joined: May 1st, 2021, 1:36 pm

You mentioned jounalists, and I am wondering if you are aware of "paragraph text" which will automatically fully justify text and has four different options for dealing with the last line. I think this is more what is expected in journalism than scaling lines by different amounts.


Post Reply