FR: Automatic horizontal compression of text to fit the frame

For some projects, I have a wide title;

and I use the compression function in the Text pane to make it fit since I want all my titles to have the same font size.

It would be a nice feature (if possible) if a paragraph format could “auto-compress” (not auto-expand!) if the text does not fit on a single line.