# Re: fontinst documentation

• To: Rebecca and Rowland <rebecca@astrid.u-net.com>
• Subject: Re: fontinst documentation
• From: Lars Hellström <Lars.Hellstrom@math.umu.se>
• Date: Tue, 10 Nov 1998 13:51:51 +0100 (MET)
• Cc: fontinst@cogs.susx.ac.uk

>>The fontinst documentation does not list the two commands \max and \min,
>>that can be used in integer expressions to compute the maximum and minimum
>>respectively of two integer expressions. (They were not included in the
>>v1.5 documentation either, as I recall it, but they are listed in the
>>source.)
>
>Hmm...  Can you describe the syntax and give an example of their use?
>
>Rowland.

The syntax is identical to that of \add. As for an example of use, you
could consider the following (taken from latin.mtx):

\setcommand\topaccent#1#2#3{
\push
\moveup{\max{0}{\sub{\height{#1}}{\int{xheight}}}}
{\scale{\sub{\height{#1}}{\int{xheight}}}{\int{italicslant}}}}
\glyph{#2}{1000}
\pop
\glyph{#1}{1000}
}

There is a \max on the third line.

Lars Hellström