True Type fonts under Linux
fonts directly from the windowsfonts directory. Just mount the windows
partition and add the font's directory to the FontPath in your xfs
config or in you XF86config file. More on this later.
You need to create a fonts.dir file that lists the fonts in your
directory. You will need the ttmkdir utility which you can get here
( http://www.darmstadt.gmd.de/~pommnitz/TrueType/ttmkfdir.tar.gz ). Red
Hat 6 and above already include this utility.
Untar the tar.gz
tar zxvf ttmkfdir.tar.gz
cd ttmkfdir
cp ttmkfdir.linuxbin.glibc2 /usr/bin/ttmkfdir
Go to the directory where you placed the fonts.
cd /usr/X11R6/lib/X11/fonts/ttf
Run ttkmkfdir with the following command.
ttmkfdir -o fonts.dir
In Red Hat you can give the following command to add the True Type fonts
directory to your list of font paths and restart the X font server.
chkfontpath --add /usr/X11R6/lib/X11/fonts/ttf
/etc/rc.d/init.d/xfs restart
That is all you need to do to get True Type fonts into Red Hat and Red
Hat'ish distributions.
Other distributions require a little more work before they can start using
True Type fonts.
Create a new file /etc/xfstf.conf with the following contents
client-limit = 10
clone-self = off
use-syslog = off
error-file = /var/log/xfs.errors
# in decipoints
default-point-size = 120
# x,y
default-resolutions = 100,100,75,75
catalogue = /usr/X11R6/lib/X11/fonts/ttf,
/usr/X11R6/lib/X11/fonts/morettf,
/usr/X11R6/lib/X11/fonts/evenmorettf
The great thing about this font server is that it can serve fonts to
remote clients too. Set up this font server on your network and you can
serve fonts to everyone on it. Way better than individually configuring
each computer.
Red Hat, with an eye on security, has modified the font server so that it
will serve fonts only to the local computer. You will need to make a few
changes to allow xfs to serve fonts remotely.
Edit /etc/rc.d/init.d/xfs
Look for a line that says "daemon xfs -droppriv -daemon -port -1". Remove
the -droppriv part and the -port part. Restart the font server and you're
- « first
- ‹ previous
- of 4
- next ›
- last »