summaryrefslogtreecommitdiff
path: root/fonts/utilities/pkbbox/README
blob: 62fa3bbee09b6cdc73bc31df367fd61e40b7eba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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