This Gist contains a simple expression for auto scaling the size of text layers to fit a composition based on the size of their text content. This is similar to the behavior in programs like Keynote, where the font size automatically scales down as you type more content.
Set up your composition and add your text layer. You'll want to get a baseline font size for things, so enter a bit of text and size it to look the way you want that amount of text to look. This is more of an art than a science, so go with your ❤️ here. 💪