Suppose I have a huge amount of text. I'd like to typeset it so that it starts with a massive font (e.g., 100pt) and with each new line becomes slightly smaller (e.g., by 99%) so that by the end of the document it's unreadably small (e.g., 2pt).
For a given set of text I could insert font size changes at just the right place after line breaks, but this will take a lot of effort and will need to be repeated if I change the text even slightly.
Is there a way to do this programmatically with pure Latex?