Expression to change line spacing based on above or below baseline characters
HI everyone, I have a simple task, but I imagine the expression is complicated to write,
I`d like to add an expression to the y value of the line spacing property of a texts property that will do the following to a multiline text.
It will look at any above or below baseline characters for every line of text and adjust the spacing so that these characters never overlap.
so in this photo, the first example is how I want the result to be when no above or below baseline characters are used.
the 2 second example is what I want after effects to do in the case where those characters may appear.
And if possible, the 3rd secnerio would be ideal, where as when those characters do not interfere with each other we keep the distance closer then the 2nd example, but still no overlap.
Has anyone ever done anything like this before ?