On 4/17/06, Nicolas FRANCOIS <[EMAIL PROTECTED]> wrote:
>
> Yeah, but what about _MY_ ugly fonts ? ;-)

Which fonts are you describing?  Unless you specifically want them,
you should only let Fontconfig see TrueType or OpenType fonts.  The
Type1 and bitmapped fonts that come with X should not be necessary to
use Qt or Gtk2.

> So what do I have to add to /etc/fonts/fonts.conf to be sure Qt and Gtk
> find their fonts again ? I added
>
>         <dir>/usr/share/ghostscript/fonts</dir>
>
> and also tried to add my texmf font dir, but clearly this is not a good
> idea. I think it's not enough. What can I do more ?

Assuming that the extra fonts you installed were TrueType (like
FreeFont) and you installed them in /usr/share/fonts, then nothing. 
If you installed them somewhere else, move them to /usr/share/fonts
and run fc-cache as root.

I don't make the ghostscript or texmf fonts available to Fontconfig. 
I don't know think they're necessary.

> I compared the two pages from BLFS 6.0 and BLFS SVN, but my knowledge is
> clearly unsufficient to decode the differences and the consequences.
>
> /etc/fonts/fonts.conf is for the core X Font protocol. How do I change
> the Xft behaviour ? And what about the FontPath lines
> in /etc/X11/xorg.conf ?

Maybe that's not really clear.  /etc/fonts/fonts.conf is for
Fontconfig.  Xft uses Fontconfig on the client side, so, by extension,
fonts.conf controls Xft.  The core X fonts are controlled by FontPath
directives in xorg.conf and X resources.  They will use TrueType fonts
if you load the freetype module in xorg.conf *and* there are
appropriate fonts.scale files in these directories.

If you'll be using KDE or GNOME, then you don't have to do anything
with the core X fonts.  These will only be used by, e.g., xterm,
Gtk-1, twm, etc.  KDE will get all it's font info from Fontconfig.

If you want to see what fonts Fontconfig can currently use, run
fc-list.  It's very possible that the fonts you're expecting to see
are bitmapped ones from X that you previously used.  While in general
it's not desired to use these when TrueType fonts are available, you
could add one of the X font directories to /etc/fonts/fonts.conf or
/etc/fonts/local.conf.

Try installing a couple of the fonts packages mentioned on the X Setup
page.  Particularly, DejaVu is a pretty nice package that has good
Unicode coverage (there are a lot of glyphs for non-US English
characters).  Another good package to install is FreeFont.  While the
fonts aren't pretty, they have very good Unicode coverage.  It's the
last preferred font for Fontconfig, so if no other font can be found
to render a character, FreeFont will probably be used.  My current set
of fonts in /usr/share/fonts are: DejaVu, MSCoreFonts, Baekmuk,
Firefly, Kochi and FreeFont.  DejaVu is used for most of my
applications that call a generic name like Sans.  It looks very good,
IMO.

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

Reply via email to