On Thu, 24 Jan 2002 14:45:25 +0100
"Hans Hagen" <[EMAIL PROTECTED]> wrote:

> sure, but the main problem is that one cannot ask the filesystem what fonts 
> there are (try to open a font file from within tex); also, building this 
> into context only for cmr is not worth the trouble and slowing down overhead

Well, actually, this works ...

\newif\iffontexists

\def\testfont#1{{\batchmode
  \global\fontexistsfalse
  \font\junk=#1\junk
  \ifdim\fontdimen5\junk>0pt
    \global\fontexiststrue
  \fi }}

\testfont{cmr10 }
\testfont{cmmmr10 }


:)

-- 
groeten,

Taco

Reply via email to