fontdir - downloads a Type 1 font .PFB file to a PostScript printer USAGE fontdir [-o outputfile] [-t] [-n] [-I path]... [pfbFile ...] DESCRIPTION fontdir parses the .PFB file and downloads the font to a PostScript printer connected to LPT1. If no pfbFile is specified, fontdir starts an interactive session. The output may be redirected to any file or port with the [-o] option. If outputfile is "LPT2", then parallel port 2 will be used. If the outputfile is "COM1" then serial port 1 will be used. If the outputfile is "-", the output is directed to the screen. If you redirect the output to a file, you can download that file directly by using DOS COPY. If you just want to see the PostScript font name of the pfbFile, use the "-n" option. The PSFONTS environment variable defines the default search paths for the font files. The directory names must terminate with a '\'. Each directory name is separated by a comma. INTERACTIVE SESSION: If not pfbFile is specified, fontdir will enter an interactive session. fontdir will build a list of fonts it finds in: 1. The current directory 2. In any directory specified by the -I option 3. In any directories specified by the PSFONTS environment variable. If duplicate file names are found, the first one encountered takes presidence. Once inside fontdir, you'll see a list of fonts (file names followed by the PostScript Name.) A highlight bar indicates the font that will be selected/deselected when is hit. A command bar at the bottom show the valid key entries. Selecting a font does not initiate the download process. You can select as many fonts as you wish before downloading () all of them at the same time (while you go grab a cup of coffee.) Hitting any letters will make the list jump to the first font that begins with that letter. Otherwise , , , and keys will help you scroll through the list. A brief legend: , , , scrolls through the font list. Jumps to the first font that starts with that letter. Toggles selection of the font under the highlight bar. Selected fonts are marked with a check mark to the left of the file name. Downloads all selected fonts. Changes the device name. The default is LPT1, but it can be changed to any other port or file name. Toggles Permanent/Temporary font. A "Permanent Soft font" is one that will reside in the printer until it is turned off. A temporary font will disappear after the current job (the first ^D that the printer sees.) Downloading a temporary font is useful during testing of a font. Exit fontdir. OPTIONS -o redirects the PostScript code to another file or device. The default is LPT1. If the filename is "-", standard output is used (console). A space between the 'o' and the filename is optional. -t makes the font a temporary one. It will be cleared after the next EOF (^D) sent to the printer. -n Only display the name of the font. -I specifies additional search paths to find pfbFiles. These paths are searched before the current directory and paths specified by the PSFONTS environment variable. EXAMPLES set PSFONTS=c:\windows\psfonts\;c:\psfonts1\ fontdir prese___.pfb The above will search the current directory, then c:\windows\psfonts, then c:\psfonts1 for prese___.pfb to download to LPT1, the default device. fontdir -I d:\fonts\ random__.pfb -t -otemp.fon The above will search d:\fonts first for random__.pfb before the standard paths. It will create a temporary downloadable font and store it to a file called temp.fon. The font may be downloaded to the printer using the DOS COPY command. Some legal stuff: This program is distributed in the hope that it will be useful, BUT WITHOUT ANY WARRANTY WHATSOEVER, without even the implied warranties of merchantability or fitness for a particular purpose. If, however, you do find this program useful outside of the envelope printing arena, and you feel up to it, you can send me $2 at the following address: Vincent Chen 3083 Rasmus Circle San Jose, CA 95148-3140