I just came up with a decent workaround (might’ve been mentioned here).
Make a test layer containing the characters with descenders like ‘pyl,.’ maybe add some CAPS in there as well. Then just reference the height of this textbox for any manipulations
Where the layer “get-text-box-sizes” is just the text layer that you could hide.
// workaround to get a height with descenders so all boxes are consistent
s=thisComp.layer(“get-text-box-sizes”);
defaultTextboxHeight = s.sourceRectAtTime().height;
Keith
twitter.com/keithhopkin
ArtworkNotAvailable.com
ThatSongSoundsLike.com
facebook.com/keith.a.hopkin