LaTeX provides the following size functions, whose `inputs' are <fontarg> and <optarg> (when present).
<<8>> <<9>> <<10>> gen * cmtt
Generates the external font from <fontarg> followed by
the user-requested size, using the conventions of the `ec' fonts.
e.g. <<10.98>> genb * dctt
produces dctt1098
.
Like the `genb' function but without terminal warnings, only loggings.
/
<series>/
<shape>.
Examples for the use of most of the above size functions can be found
in the file cmfonts.fdd
--the source for the standard .fd
files
describing the Computer Modern fonts by Donald Knuth.
\DeclareSizeFunction
{<name>} {<code>}
Declares a size-function <name> for use in \DeclareFontShape
commands. The interface is still under development but there should be
no real need to a define new size functions.
The <code> is executed when the size or size-range in
\DeclareFontShape
matches the user-requested size.
The arguments of the size-function are automatically parsed and placed
into \mandatory@arg
and \optional@arg
for use in <code>. Also
available, of course, is \f@size
, which is the user-requested size.
To signal success <code> must define the command \external@font
to contain the external name and any scaling options (if present) for
the font to be loaded.
This example sets up the `empty' size function (simplified):
\DeclareSizeFunction{} {\edef\external@font{\mandatory@arg\space at\f@size}