Index of /archives/text/CTAN/fonts/utilities/pkbbox

Icon  Name                                 Last modified      Size  Description
[PARENTDIR] Parent Directory - [TXT] README 1994-08-25 09:00 1.6K [   ] pkbbox.exe 1994-07-19 09:00 26K [   ] pkbbox.mak 1994-07-19 09:00 1.2K [TXT] pkbbox.pas 1992-11-30 09:00 3.7K
PKBBOX is a hack that exists only because some Type1 fonts on the
net do not include AFM files.  I was determined to use these fonts
(I don't remember why anymore ;-) so I discovered that the following
sequence would produce a legal, if imperfect, AFM file:

 1) Use PFM2AFM to generate an initial AFM file.  This file is insufficient
    for generating a TFM file because it does not contain the bounding
    boxes for the characters.

 2) Use PS2PK to produce a PK file from the Type 1 font.  This works because
    PS2PK doesn't care about the bounding boxes.

 3) Use PKBBOX to build a (more) valid AFM file.  PKBBOX reads the original
    AFM file and the PK file and constructs reasonable (but *not* perfect)
    bounding boxes.  It produces a new AFM file with this information.

 4) Use the new AFM file to generate a TFM file.

 5) That's it, use the font.

The bounding boxes are going to be wrong if the font has letters which have
large descenders or other "bumps" that extend out of the real bounding box,
but it was the best I could do.

                                                  Cheers,
                                                    norm

P.S. Feel free to drop me a note if you have any difficulties, although I
can't promise that I'll be able to help very much.

---
Norman Walsh <norm@ora.com> | Unable to locate coffee---operator halted.
Production Tools Specialist |  
O'Reilly & Associates, Inc. |  
90 Sherman Street           |  
Cambridge, MA 02140         |------------------------------------------------
(617) 354-5800/661-1116 FAX | URL: http://jasper.ora.com/norm.html