# 2.5.7.1 Linux

The Printer Setup dialog allows you to configure the application's use of the printer.

The Printer Setup window contains:

  Printer - a list to select a particular printer. The entries on this list are defined by `printer` lines in the `~/.xtrkcad/xtrkcad.rc` file. The first entry, 'File', causes printouts to be sent to a file. You will be prompted for a file name when doing a print.

  Paper Size - a list of various North American and European paper sizes.

  Margins - non-printable margins for particular printers. You can adjust these entries or select a printer type from the list. To add margins for a new printer, enter the printer's name and then enter the margin for each edge. You can use Print Test Page to determine the margins for your printer.

  The Delete button removes a printer from the margin list.

  Format - a Radio button to select either Landscape or Portrait format.

  X Font and PS Font - specifies the mapping between the displays X Font and the corresponding Postscript Font. You can change the Postscript font for a specified X Font by typing the new font name in the PS Font field. The font alias map will be printed on the Print Test Page.

  Factor - adjusts the scaling between X Font and Postscript Font sizes. Due to differences between the two font systems, text size may be of slightly different between the display and printer. This option allows you to adjust the font size. Normally only a small adjustment is required, (like 0.950).

  OK - updates the data and ends the dialog.

  Cancel - ends the dialog without update.

  Print Test Page - prints a test page you can use to determine the printer margins.

The formats of the printer entries are:

  PRINTER.Iprinter-num: Iprinter-name=Icommand

  where:
    `Iprinter-num` is the next value in a sequential list (starting at 1, 0 is reserved for FILE). printer.1 is predefined as `lp=lpr -P%s`.
    `Iprinter-name` is the name of the printer as it appears in the Printer selection list.
    `Icommand` is the command to invoke where %s will be replaced by the `Iprinter-name`.

To add a new printer, select the next value for Iprinter-num and add the printer line with the name and print command.

Printing generates Postscript data which is sent to the specified printer (or File). The names of fonts differs between the X Window System and Postscript and there is no formula to convert them. The printing system uses a font alias map to convert from X font names to Postscript font names. Font aliases for the common Postscript fonts are predefined but you must supply an alias for unknown fonts. The 'Font Alias' window will be shown whenever you are printing an unknown font. You will be asked to supply a Postscript font name for a X font. You can change the font alias mapping by using the X Font and PS Font entries on the Printer Setup dialog.