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 <firstname.lastname@example.org> | 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
Download the contents of this package in one zip archive (17.3k).
pkbbox – Derive glyph bounding boxes by building PK file
The author found that AFM files generated by pfm2afm lacked glyph bounding box information, so that they are not much use for generating TFM files. This package proceeds by generating a PK file from the Type 1 font by use of ps2pk, and then using information from that to generate a more nearly valid AFM file from the original.
|License||Unknown Status, No Information Available|
manipulate or examine fonts|