next up previous contents index
Next: Using t1lib Up: t1lib_doc Previous: Some General Remarks on   Contents   Index


The Program type1afm

type1afm is a simple commandline tool (about 150 lines C source code) that allows to generate an AFM file from a Type 1 font program. It is intended for people who want to use Type 1 font files that come without AFM files with t1lib (or other software that requires AFM files). The syntax is

type1afm [-l] <fontfile1> [<fontfile2> <fontfile3> ...]

For each fontfile specified on the commandline, an AFM file with the corresponding name is generated in the current directory. Most of the work is done in t1lib-internal functions. See section [*] on how AFM information is generated and written to files.

It is usually not desireable to leave a logfile wherever the utility has been executed. Thus by default no logfile is generated. This behaviour can be changed by specifying the optional parameter -l. This causes a logfile with T1LOG_DEBUG as loglevel to be written to the disk. Its name will be t1lib.log (see [*]).



2005-01-12