settosize – Scale text to given width
The package defines a command
\set <text> \in <font> \to <size>
that chooses the “best” magstep that will fit the given text into the width, and typesets the text accordingly.
Maybe you are interested in the following packages as well.
- fontch: Changing fonts, sizes and encodings in Plain TeX
- pdcmac: Damian Cugley's document tools
- slem: Slanted emphasis in LaTeX 2.09
- fontbl: A font sampler