
mkttfontdir
-----------

Since XFree86 4.0 now has built-in support for truetype fonts, but I could
not find a program that would install them for me, I decided to write one
myself.
It seems to work quite well, even though I have no idea (yet) what most
of the fields in the fonts.dir file actually mean. I'll figure that out
later if there's a need for that.

Of course there's a chance this program doesn't work for you. If this is the
case, feel free to mail me, and point me to the font file that doesn't want
to be processed by mkttfontdir (DON'T SEND ME FILES UNLESS I ASK FOR THEM !),
and I'll see what I can do about it.

I have only tested it with XFree86 4.0 and above, although I think it should
work with 3.x.x as well, as long as you have some truetype font server loaded.

I can be reached at punisher@xs4all.nl, my homepage is located at
http://www.xs4all.nl/~punisher.


INSTALLATION
------------

Since you're reading this I assume you already untarred it.
It couldn't be simpler - just type 'make' and you're done.
Okay, maybe you'll want to copy the executable to a somewhat more
accesible directory.


USAGE
-----

The next step is to get some font (*.ttf) files. Your C:\WINDOWS\FONTS
directory is usually a good source :).
Here I will assume you want to install them in 
/usr/X11R6/lib/X11/fonts/TrueType and your windows drive is mounted on
/win/.

You should do this as root.
First, decide if you want your font files on your linux drive or not.
Usually you will not want this, unless you don't always have your windows
partition mounted.

If you do, first create a directory for the fonts :
- mkdir /usr/X11R6/lib/X11/fonts/TrueType

Now copy your ttf files to that directory :
- cp /win/windows/fonts/*.ttf /usr/X11R6/lib/X11/fonts/TrueType/

Now move into your freshly created directory :
- cd /usr/X11R6/lib/X11/fonts/TrueType


If you want to use your font files from your windows directory, simply
cd into that directory.

Now, run mkttfontdir like this : mkttfontdir *.ttf *.TTF


Now all you have to do is add this path to your XF86Config file.
Open /etc/X11/XF86Config in your favourite editor, locate the "files" section
(you should see several FontPath entries there) and add the following line :
FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
or use your windows/fonts path if you leave your fonts there.

Restart your X server (if it was running), and you're done.
Enjoy.


HISTORY
-------
02-06-2001    - Version 1.0
		Jean "Khali" Delvare (www.ensicaen.ismra.fr/~delvare/) has
                sent me a patch that cleaned up the code a bit, along with
                a few good suggestions. Thanks Jean.
20-05-2000    - now detects monospaced fonts
Some time ago - initial release


LEGAL
-----

This program is public domain. Do with it what you will.
Of course this means you are using it at your own risk and that there
are absolutely no warranties.

Some names mentioned here and in the program are trademarks or registered
trademarks. They're hereby acknowledged.

In case I'm breaking any laws I don't know of, tell me about it, I'll fix it. :)

