7. The Menus / 7.4 The Layout Menu
Optimize Text Layer Size reduces the size of a text layer as much as possible without changing the appearance of the text.