<!-- This HTML file has been created by texi2html 1.4 on 05 Jan 95 -->

<TITLE>Frequently Asked Questions About Fonts - Improving font rendering time</TITLE>
Go to the <A HREF="FAQ.texinfo_65.html">previous</A>, <A HREF="FAQ.texinfo_67.html">next</A> chapter.<P>
<H1><A NAME="SEC118" HREF="FAQ.texinfo_toc.html#SEC118">Improving font rendering time</A></H1>
<P>
Although the Sun type renderer (TypeScaler) is pretty fast, it's not as
fast as loading a <A HREF="FAQ.texinfo_17.html#GLOSS3">bitmap</A>.  You can pre-generate <A HREF="FAQ.texinfo_17.html#GLOSS3">bitmap</A> fonts for sizes
that you use a lot, and you can also alter and access the <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> cache
parameters.      If you have a lot of memory you might want to increase the
<A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> cache size.
<P>
<PRE>
    $ psh -i
    Welcome to X11/NeWS Version3      <--- psh will say this at you
    currentfontmem =                  % type this line ...
    300                               % ... my server was using 300 Kbytes
    1024 setfontmem
                                      % Just to check:
    currentfontmem =
    1024
</PRE>
<P>
See pp. 328ff of the NeWS 3.0 Programmer's Guide.  You need to say <TT>psh -i</TT>
so that the PostScript packages are loaded - see the psh man page.
<P>
You could also add the following line to your <TT>$HOME/.openwin-init</TT> file
to perform this task every time you start OpenWindows:
<P>
<PRE>
  echo 1024 setfontmem | psh -i > /dev/null 1>&2
</PRE>
<P>
