fontinst documentation

Lars Hellström Lars.Hellstrom@math.umu.se
Tue, 10 Nov 1998 13:51:51 +0100 (MET)


>>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}}}}
      \movert{\add{\sub{\scale{\width{#1}}{#3}}{\scale{\width{#2}}{500}}}
         {\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