pfm2kpx1
Extract correct kerning information from pfm (printer font metrics) files
Usage
pfm2kpx [options]
pfm
Overview
Many PostScript Type1 fonts contain only pfb and pfm files, but no afm (Adobe Font Metrics) files. These can be generated with pf2afm (which comes with GhostScript), but this might not yield all kerning pairs from the pfm file. The reason for this is that pf2afm interprets "dfCharSet = 0x00" to mean that the Adobe StandardEncoding has been used, whereas many fonts (or font creation tools) instead use the Windows ANSI (aka codepage 1252) encoding. (You know you've hit this problem when pf2afm complains "".notdef character ocurred among kern pairs -- you'd better check the resulting AFM file"".) In this case, the resulting afm is incomplete and contains wrong kerning pairs.
pfm2kpx extracts the correct kerning pairs from such pfm files and repairs the afm (if necessary creating it first by running pf2afm). If for some reason it can't update the afm, it prints the kerning pairs to "stdout" instead.
When pf2afm doesn't complain about the kerning pairs, pfm2kpx thinks the resulting afm file is fine and quits; this can be changed by specifying the -f option (see below).
Options
-
-f -
Force updating of the afm file, even if pf2afm doesn't complain.