On 3/24/06, Ken Moffat <[EMAIL PROTECTED]> wrote:
> On Fri, 24 Mar 2006, Dan Nicholson wrote:
>
> >
> > * An example font installation.  I want to emphasis that all the fonts
> > do not need to be dumped into one directory and fc-cache should be run
> > for FC to be aware of the fonts.
> >
> > * mkfontscale, mkfontdir for any fonts added into /usr/lib/X11/fonts/*
>
>   My font installation is probably royally screwed up (e.g. firefox and
> konqueror differ in how much they can render on certain pages), and I've
> still got all my ttf files in /usr/X11R6/lib/X11/fonts/TTF, so it might
> be that I'm doing things wrong.

As long as fontconfig knows about that directory, you can dump all
your TrueType fonts there.  Look at /etc/fonts/fonts.conf.  Right near
the top it should tell you the search path.  Plus any additions you've
made in /etc/fonts/local.conf and ~/fonts.conf.  Be aware that if you
rebuild fontconfig after X, it will add /usr/X11R6/lib/X11/fonts to
the search path.  That should be suppressed so that you don't get ugly
bitmapped and Type1 fonts instead of the TrueType fonts.

To me, putting all the fonts in /usr/X11R6/lib/X11/fonts/TTF is not
preferred.  FC will recursively search the directories in it's search
path, so I like to make separate directories:
/usr/share/fonts/{dejavu,msttcorefonts,...}.

> I
> only had to copy the fonts to that directory - I've stopped running
> mkfontscale and mkfontdir, and I haven't run fc-cache.

That's because fontconfig is handling those fonts.  I don't know when
FC rebuilds those cache files.  I just do it to be safe.

As for mkfontscale and mkfontdir, that's only for the X font system. 
So, any fonts you add that you want the X font system to be aware of,
you'd have to rerun those commands so for them to be used.  Actually,
the Makefile's of most of the fonts in Xorg-7 run these commands
during installation, so you wouldn't need to redo it.  But, the X font
system is only used by the core X apps, GTK+-1, etc.  Anything using
GTK+-2 gets its fonts from fontconfig.  You can even make xterm use
TrueType fonts through libXft.  It's such an improvement.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to