Tue, 04 Oct 2005

Installing TrueType fonts

Copy ttfont.ttf to /usr/local/share/fonts/ttfonts
Next build fonts.scale with the following command:
	ttmkfdir -o fonts.scale
Reverse the order within fonts.scale and make fonts.dir:
	head -1 fonts.scale > fonts.dir
	tail +2 fonts.scale  | tac >> fonts.dir
	cp fonts.dir fonts.scale
If not present already, make sure the following
exists in /etc/X11/XFree86Config-4:
	FontPath   "/usr/local/share/fonts/ttfonts"

Check to see if font was properly installed by looking
in xfontsel

Now since fontconfig is a part of fonts, run:

    fc-cache -f 

to scan font directories with apparently valid caches

See also:  /etc/fonts

Posted at: 00:00 | category: /commands | Comments ()