Printers differ in the way they print different font styles. Some have font cartridges, while others have preprogrammed, selectable character sets. The print service can minimize the impact of these differences on the users of the print service.
You can specify which font cartridge or character set is available with each printer. When you list the font cartridges or character sets available, you assign names to them. These names are for your convenience and the convenience of the users on your system. Because different printers might have similar font cartridges or character sets, use common font names on all printers. This allows a user to submit a file for printing and request a particular font style, without requiring that the user know which printer is used or whether a font cartridge or selectable character set is used.
If the printer has mountable font cartridges, you only need to list their names. If the printer has selectable character sets, you must list their names and map each set to a name or number that uniquely identifies the set in the terminfo database.
For printers that allow selectable character sets, determine the names of the character sets and then map each set to a name or number in the terminfo database.
To determine the names of the character sets listed
in the terminfo database, enter:
tput -T printer-type csnm 0
printer-type is the name of the printer type in question. This command should display the name of the 0th character set (the character set obtained by default after the printer is initialized).
To display the names of the other character sets, repeat the command above, replacing 0 with 1, 2, 3, and so on.
In general, the terminfo names should closely match the names used in the user documentation for the printer. However, because not all manufacturers use the same names, the terminfo names may differ from one printer type to the next.
To specify a list of character set names and to map them into
terminfo names or numbers, enter:
/usr/sbin/lpadmin -p printer_name -S characterset_list
characterset_list is a list of names, separated by commas or spaces.
If you use spaces to separate the names,
enclose the entire list (but not the
Each item in the list is a character set name ``mapping'' (alias)
that looks like one of the following:
N is a number between 0 and 63 that identifies the number of the character set in the terminfo database. characterset_name1 identifies the character set by its name in the terminfo database. In both instances, the name to the right of the equal sign (=) is the name you choose as an alias of the character set.
For example, your printer has two selectable character sets
(sets #1 and #2) in addition to the standard character set (set #0).
The printer type is 5310.
Enter the following commands to determine the names of the
selectable character sets:
tput -T 5310 csnm 1
tput -T 5310 csnm 2
The words ``english'' and ``finnish'',
which are the names of the selectable character sets,
are the output of the commands.
The name finnish
is adequate for referring to character set 2,
but better names are needed for
the standard set (set 0) and set 1.
Enter the following command to define synonyms:
/usr/sbin/lpadmin -p printer_name -S "cs0=american, english=british"
The following three
commands will then produce identical results.
command routes print jobs to the printer, and in
these examples, routes the print job to any printer
capable of handling the cs1 character set.)
lp -S cs1 -d any . . .
lp -S english -d any . . .
lp -S british -d any . . .
If you do not list the character sets that can be used with a printer, the service assumes a printer that has selectable character sets can take any csN name or terminfo name known for the printer.
To remove the character set mappings, enter:
/usr/sbin/lpadmin -p printer_name -S none
Until you specify the font cartridges that can be used with a new printer, the print service does not consider any font cartridges installable on that printer and rejects any print requests that require a font cartridge.
To specify a list of font cartridges to use with a printer, enter:
/usr/sbin/lpadmin -p printer_name -S font_cartridge_list
font_cartridge_list is a list of font cartridge names, separated by commas or spaces. If you use spaces to separate the names, enclose the entire list (but not the -S) in quotes. These are the only font cartridges considered installable on the printer.
To remove the font cartridge list from the printer, enter:
/usr/sbin/lpadmin -p printer_name -S none
Once you specify the list of font cartridges installable on the printer, you can install them. See ``Changing a font cartridge on a printer''.
Before the print service prints a file that requires a font cartridge, you must install and mount the font cartridge on the printer.
If you have set up alerting for the font cartridge, the print service alerts you when enough print jobs are queued for the font cartridge to be installed and mounted. See ``Alerting to mount forms and font cartridges''.
Changing a font cartridge involves first removing the current font cartridge from the printer. Then, install the new font cartridge on the printer and inform the print service that the new font cartridge is ready to use by mounting it. Because it is difficult to do this on a printer that is currently printing and because the print service continues to print files that do not require the font cartridge on the printer, disable the printer first.
To install or change a font cartridge:
Any print requests that require a font cartridge are printed on printer_name.