PRINTFONT(1)

NAME
printfont - font listing program for PostScript printers

SYNOPSIS
printfont [ options []] [ files []]

DESCRIPTION
printfont builds a PostScript program that prints character set tables for one or more PostScript fonts. The program is written on the standard output, and when sent to a PostScript printer usually prints a 16×16 table that shows the available (encoded) characters in each font. The following options are understood:

[-a num]
Set the character cell axes mode to
    num. 0 disables axes printing, 1 draws a baseline, 2 adds a vertical line through the character origin, and 3 adds a vertical line through the next character origin. The default is 0.

    [-b num]
Print each table in base
    num. The base determines the number of rows and columns in the table. It also affects the character code placed in the lower left corner of each cell. The default is 16 (hexadecimal).

    [-c num]
Print
    num copies of each page. By default only one copy is printed.

    [-f name]
Use font
    name for labeling the tables. The default font is Helvetica.

    [-g num]
Use num as the gray level for marking cells not currently assigned to characters. The gray level should fall between 0 (black) and 1 (white). The default is 0.85.

    [-m num]
Magnify each logical page by the factor
    num. Pages are scaled uniformly about the origin, which is located near the upper left corner of each page. The default is 1.0.

    [-p mode]
Print
    files in either portrait or landscape mode. Only the first character of mode is significant. The default mode is portrait.

    [-v]
Completely label each character cell.
    The full character name goes in the upper left corner and the character width (at point size 1) goes in the lower right corner.

    [-w num]
Set the line width to
    num points, where a point is approximately 1/72 of an inch. A line width of 0 means 1 pixel. The default line width is resolution dependent.

    [-x num]
Translate the origin
    num inches along the x axis. Positive num shifts the table to the right. The default offset is 0.

    [-y num]
Translate the origin
    num inches along the y axis. Positive num shifts the table up the page. The default offset is 0.

    [-C file]
Copy
    file to the output file; file must contain legitimate PostScript.

    [-E name]
Set the character encoding for text fonts to
    name. Requesting name means include file A nonexistent encoding file is silently ignored. The default selects file /usr/lib/postscript/Default.enc(.)

    [-L file]
Use file as the PostScript prologue.
    The default is /usr/lib/postscript/printfont.ps(.)

Arguments should be PostScript font names or the word all(,) which means the full set of ROM and disk based fonts available on a printer. printfont prints one font table per page. Each page is labeled with the font name, the printer product name and interpreter version number, and the gray level, linewidth, and printer resolution.

Black cells are used to mark characters listed in the font's array but missing from its dictionary. They usually indicate an incomplete font or a mistake in the array. The check is skipped if the font doesn't include a dictionary.

EXAMPLES
Print the characters available in the Times-Roman, Symbol and ZapfDingbats fonts:
    printfont Times-Roman Symbol ZapfDingbats | lp ...
Print a baseline under each character and fully label the cells:
    printfont -a1 -v Times-Roman Symbol ZapfDingbats | lp ...
Dump all the fonts available on a printer using the Latin1 character encoding:
    printfont -ELatin1 all | lp ...

WARNINGS
Printing a single table can take several minutes. Dumping all available fonts can tie a printer up for an hour or more.

FILES

SEE ALSO
buildtables(1), dpost(1), postio(1), psencoding(1), trofftable(1)