Size functions
LATEX<#585#><#585#> provides the following size functions, whose `inputs' are
<#586#>fontarg<#586#> and <#587#>optarg<#587#> (when present).
<#588#>description<#588#>
[`' (empty)]
Load the external font <#589#>fontarg<#589#> at the user-requested size. If
<#590#>optarg<#590#> is present, it is used as the scale-factor.
[s]
Like the empty function but without terminal warnings, only
loggings.
[gen]
Generates the external font from <#591#>fontarg<#591#> followed by
the user-requested size, e.g. |;SPMlt;;SPMlt;8;SPMgt;;SPMgt; ;SPMlt;;SPMlt;9;SPMgt;;SPMgt; ;SPMlt;;SPMlt;10;SPMgt;;SPMgt; gen * cmtt|
[sgen]
Like the `gen' function but without terminal warnings, only loggings.
[sub]
Tries to load a font from a different font shape declaration given by
<#592#>fontarg<#592#> in the form <#593#>family<#593#>|/|<#594#>series<#594#>|/|<#595#>shape<#595#>.
[ssub]
Silent variant of `sub', only loggings.
[subf]
Like the empty function but issues a warning that it has to substitute
the external font <#596#>fontarg<#596#> because the desired font shape was not
available in the requested size.
[ssubf]
Silent variant of `subf', only loggings.
[fixed]
Load font <#597#>fontarg<#597#> as is, disregarding the user-requested size.
If present, <#598#>optarg<#598#> gives the ``at ...pt'' size to be used.
[sfixed]
Silent variant of `fixed', only loggings.
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.
<#600#>decl<#600#>
|| <#601#>name<#601#> <#602#>code<#602#>
Declares a size-function <#604#>name<#604#> for use in | |
commands. The interface is still under development but there should be
no real need to a define new size functions.
The <#605#>code<#605#> is executed when the size or size-range in
| | matches the user-requested size.
The arguments of the size-function are automatically parsed and placed
into |@arg| and |@arg| for use in <#606#>code<#606#>. Also
available, of course, is |@size|, which is the use- requested size.
To signal success <#607#>code<#607#> must define the command |@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):
<#608#>tex2html_preform<#608#>verbatim61#