Examples

The following examples assume that bodies of text are provided with variables named $A$, $B$, and $C$.

Maintain the same ratio between font sizes throughout the range:

{\fs10\copyfit100 $A${\fs20\copyfit200 $B$}$C$}

$B$ is always rendered twice as large as the rest of the text. When much text is specified, $A$ and $C$ is rendered with \fs10 and $B$ with \fs20. With little text, $A$ and $C$ use \fs100 and $B$ \fs200.

Converge to a common large font size if only a small amount of text is drawn:

{\copyfit100\fs10 $A${\fs20 $B$}$C$}

At the smallest end of the range, $B$ is rendered with \fs20, twice as large as $A$ and $C$ at \fs10. All text is drawn at \fs100 (50 pts) at the opposite end of the range.

Converge to a common small font size if much text is to be rendered:

{\fs10\copyfit100 $A${\copyfit200 $B$}$C$}

All text is drawn with \fs10 on the small end of the range, while at its largest, $A$ and $C$ are rendered with \fs100 and $B$ with \fs200.

Disable copy-fitting for an inner text span:

{\fs10\copyfit100 $A${\fs50\copyfit0 $B$}$C$}

The font size for $A$ and $C$ can vary between 10 and 100, while $B$ is always rendered with \fs50.

Limit the output to a single line, even if more vertical space is available, but permit it to overflow to additional lines if too much text is specified to fit into a single line at \fs10:

{\fs10\copyfit100 \copyfitlines1 $A$}

Limit the output to a single line, even if more vertical space is available. If too much text is specified to fit into a single line at \fs10 it is truncated:

{\fs10\copyfit100 \copyfitmaxlines1 $A$}

Experience Manager