-
If text layer has specific letter
I’m making lower thirds scripting as much as I can so it flexes and stretches depending on what text is in there.
My issue right now is if I use a font that has a descender which goes below the bast line, or an ascender that goes above the cap height.
To get the box my text is in perfect, I measure the text width and heights, add a padding value and then set my shape to that. Works great until I use a capital Q which goes below the baseline.
So my question is: how can I measure the height of text from baseline to cap height? or how can I create an offset variable based on if specific letters are contained within the target text?