FONTOOLS: some tools for handling fonts with LaTeX and fontinst
===============================================================

This package provides a few tools to ease using fonts (especially
TrueType/OpenType ones) with LaTeX and fontinst:

AFM2AFM - reencode .afm files; designed to replace fontinst's
\reencodefont for big .afm files.

AUTOINST - a wrapper script around otftotfm (for installing
PostScript-flavored OpenType fonts) that also creates .fd and .sty files.

CMAP2ENC - convert glyph indices in TrueType fonts without glyph names
(such as Linotype Palatino) to Adobe glyph names.

FONT2AFM - create font metrics for just about any font file; wrapper
around tools such as pf2afm, ttf2afm, pfm2kpx and ot2kpx.

OT2KPX - extract all kerning pairs from OpenType fonts.

PFM2KPX - extract the correct kerning pairs from buggy .pfm files
(where pf2afm complains `.notdef character occurred among kern pairs').

SHOWGLYPHS - create a pdf file that shows all glyphs in a font.


Please see the documentation of the individual programs for more info.


Prerequisites
-------------

All programs have been written in Perl. I've tested them with Perl v5.6 
and v5.8; but they might also work with earlier versions. You also need 
pf2afm (distributed with GhostScript) and ttf2afm (distributed with pdfTeX);
some programs also use Eddie Kohler's LCDF TypeTools (see
http://www.lcdf.org/type/)

Most tools also use kpsewhich or findtexmf (if available) for searching 
their input files. (If neither tool is present, input files are searched 
in the current working directory.)

The SHOWGLYPHS script uses several standard Unix/Linux commands; 
it probably won't work on other platforms. It also needs a working,
TDS-compliant TeX installation.

The encoding files in the `share/' directory are meant to be used with 
Eddy Kohler's otftotfm (either directly or via the AUTOINST wrapper script);
place these files somewhere where otftotfm can find them.


License
-------

This software is copyright, 2005, Marc Penninga. It is released under 
the terms of the GNU General Public Licence. See the file GPLv2.txt for 
the license conditions.


Examples
--------

A few detailed examples of the use of some of these tools (mainly CMAP2ENC)
can be found in the directory `examples/': this contains everything you need
(except the fonts themselves, of course) to install the TrueType versions of
Linotype Palatino, Monotype Berling and Linotype Frutiger. 

                                            Marc Penninga, 2005/09/12
