Dotan Cohen
But I find that any font that I put in /usr/share/fonts worked.
Yes, installing fonts is very easy nowadays.
For applications using Xft2/fontconfig it should be enough to put them
into *any* directory in the fontconfig search path or any subdirectory
of one of these directories.
You can see the default list of directories at the top of
/etc/fonts/fonts.conf, currently (SuSE Linux 10.0 development version)
it looks like this:
<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/opt/kde3/share/fonts</dir> <dir>/usr/lib/ooo-2.0/share/fonts</dir> <dir>/usr/lib/ooo-1.1/share/fonts</dir> <dir>/opt/OpenOffice.org/share/fonts</dir> <dir>/opt/staroffice6.0/share/fonts</dir> <dir>/usr/lib64/jvm/java-1.5.0-sun-1.5.0_01/jre/lib/fonts</dir> <dir>/usr/lib/jvm/java-1.5.0-sun-1.5.0_01/jre/lib/fonts</dir> <dir>/usr/lib/jvm/java-1.4.2-sun-1.4.2.06/jre/lib/fonts</dir> <dir>/usr/X11R6/lib/Acrobat7/Resource/Font</dir> <dir>/usr/local/share/fonts/</dir>
<dir>~/.fonts</dir>
I.e. /usr/share/fonts is one of the possible directories.
For applications using X11 core fonts (not Xft2/fontconfig), it is
also enough just to copy the fonts into any directory which is listed
in /etc/X11/xorg.conf.
After installing fonts, don't forget to call SuSEconfig, this calls
/usr/sbin/fonts-config which calls fc-cache (needed by
Xft2/fontconfig) and uses mkfontscale to create fonts.scale and
fonts.dir files in each font directory which are then further fine
tuned.
If you install fonts via YaST or from SuSE rpms, you don't have to
remember to call SuSEconfig, it happens automatically in that case.
But if you install fonts manually, I recommend to run
SuSEconfig --module fonts
afterwards.
--
Mike FABIAN