Comprehensive TeX Archive Network

Direc­tory fonts/utilities/pkbbox

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.


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

Down­load the con­tents of this pack­age in one zip archive (17.3k).

pkb­box – Derive glyph bound­ing boxes by build­ing PK file

The au­thor found that AFM files gen­er­ated by pfm2afm lacked glyph bound­ing box in­for­ma­tion, so that they are not much use for gen­er­at­ing TFM files. This pack­age pro­ceeds by gen­er­at­ing a PK file from the Type 1 font by use of ps2pk, and then us­ing in­for­ma­tion from that to gen­er­ate a more nearly valid AFM file from the orig­i­nal.

Ver­sion 1992-11-30
Li­cense Un­known Sta­tus, No In­for­ma­tion Avail­able
Main­tainer Nor­man Walsh
Topics ma­nip­u­late or ex­am­ine fonts
Guest Book Sitemap Contact Contact Author