For Windows® 2000 and later, Adobe Font Metrics (AFM) files must be converted to .ntf files. A command line tool for performing this conversion, named makentf.exe, is provided with this DDK.
To convert one or more .afm files, use the following command syntax:
makentf NTF_FileName.ntf AFM_FileNames [-v] [-o]
where NTF_FileName is the name of the .ntf file to be produced, and AFM_FileNames is a set of one or more AFM files to be converted.
The following command line options are supported:
makentf roman.ntf roman1.afm roman2.afm roman3.afm makentf -o jpn.ntf jpn1.afm jpn2.afm jpn3.afm
If these files are used together, Western glyph set information will always be obtained from roman.ntf, so duplicating the information in jpn.ntf is not needed and consumes extra space. On the other hand, if jpn.ntf will be used alone, -o must not be specified.
A second command syntax is also supported, as follows:
makentf filename
where filename is the name of a file to receive output text. This syntax causes makentf to create a file containing lists of PostScript glyph names and Unicode values for each code page known to makentf.
An additional file, PSFamily.dat, is provided with this DDK and must reside in the same directory that contains makentf.exe. This is a text file that supplies makentf with the display and family names for each font.
Before a standard .afm file can be converted, you must add a line similar to the following:
Comment UniqueID IDnumber
where IDnumber represents the font's unique identifier, issued by the font vendor.
When it is processing an East Asian font's .afm file, makentf requires some additional .map and .ps files, which must reside in the same directory as that of makentf and PSFamily.dat. The additional .map and .ps files, which are provided in the DDK (together with PSFamily.dat), are necessary to create a mapping table from Unicode code to CID for the font. For more information, see Converting East Asian AFM Files to NTF Files.
An .afm file that will be converted to an .ntf file can contain the FontBBox2 keyword. This keyword's arguments are similar to those for FontBBox (see the Adobe Font Metrics File Format Specification, from Adobe Systems, Inc.), except that FontBBox2 arguments describe the bounding box for glyphs used in a specific character set (such as 90ms), while FontBBox arguments describe the bounding box for the union of all characters described in the .afm file. If FontBBox2 is not found, the values specified for FontBBox are used for the bounding box.