home *** CD-ROM | disk | FTP | other *** search
- pfm2afm - Convert Windows pfm files to afm files for OS/2
-
- Version 1.0 - 14 OCT 1991
- -------------------------
- This is the first version of this code.
-
- What are pfm and afm files?
- ---------------------------
- The afm file is an Adobe Font Metrics file. This is an ASCII flatfile
- giving the metrics for a type 1 font. ATM on OS/2 requires this file
- to install a type 1 font. It also requires the matching .pfb file
- which is the actual font.
-
- The Windows pfm file is a Printer Font Metrics file. This is a binary
- encoding of the metrics for a font. OS/2 also keeps a pfm file for fonts,
- but it is different from the Windows pfm. ATM for Windows will install
- a type 1 font if you have either the pfm file, or the afm and inf (Info)
- files. (And of course you need the font itself).
-
- Many fonts from outside vendors were shipped for Windows with the pfm
- files, but without the matching afm file. This utility overcomes that
- problem.
-
- Problems with pfm2afm:
- ----------------------
- When the pfm file is created, much of the information in the afm file
- is thrown away as unnecessary. The major pieces which are lost are data
- for characters not in the Windows character set, and bounding boxes for
- all characters. Also lost is the name of characters. This is not a major
- problem for characters in the standard Windows encoding, but for other
- character sets (Symbol, Dingbats) the names are missing. Another missing
- piece of data in the font FullName, which is what OS/2 uses. However, it
- appears OS/2 picks this out of the font and not the afm file.
-
- pfm2afm is able to reconstruct the character widths and kerning tables,
- which is the important metrics information. The font bounding box is a
- pure guess based on other metrics.
-
- The documentation for pfm files is a little sparse, so different vendors
- could interpret it in different ways.
-
- Source
- ------
- The source for the utility is included in this package. It is copyright
- IBM as a requirement of placing this code on the IBM internal tools disk.
-
- Ken Borgendale
- kwb@betasvm2.vnet.ibm.com