User`s guide

4-40
Guide to Printers and Printing
For example, to print an MBCS file that was written with a new code set on an IBM–943
printer follow these steps:
1. Create a translation table in the /usr/lib/lpd/pio/transJP directory. The naming
convention for the new file is NewCodeSetName_IBM–943.
2. Define the translation table in the trans.dir file. The format to define a new code set
named NewCodeSet is:
newcodeset IBM–943 newcodeset_IBM–943
3. Define the alias name in the trans.alias file, if needed.
4. Append the code set name as input code in a colon file, for example:
::Ti::[NewCodeSetName, ...]IBM–943, ...
Using Xwindows Fonts with the qprt Command
MBCS printer backends use Xwindows fonts defined in the /usr/lib/X11/fonts directory to
print characters that are not stored in the ROM of the printer. The –F and –I (uppercase i)
flags for the qprt command designate Xwindow fonts for the printer. The default value of
these qprt command options are specified in the colon files as the value of the _F and _I
attributes.
The qprt –F flag specifies a font. The full path name, font alias, or the Xwindow Logical
Function Description (XLFD) of an Xwindow font can be used with the –F flag.
The –I flag follows a font path to find the Xwindow fonts and creates the _I attribute entry.
The colon file format for the _I attribute is:
::_I::/usr/lib/X11/fonts/JP,/usr/lib/X11/fonts
If the user specifies another font path with the qprt –I command, the printer backend looks
in the specified font path not in the default paths listed in the _I colon file. If the –I option has
a null value, the backend assumes the default /usr/lib/X11/fonts directory.
To specify a specific Xwindows font file using a full path name, font alias, or XLFD, enter:
$ qprt –F ’*–27–*–ibm_udcjp’ foo.txt /* XLFD names list */
$ qprt –F IBM_JPN17 / * Font alias name */
This example directs the MBCS printer backend to look in the fonts.alias and fonts.dir files
to find the appropriate fonts for the code set specified with the –X option of the qprt
command.