Return to Contents, Previous Page, Next Page

### Printer Setup

The Printer Setup dialog allows you 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. The printer types are defined by marginmap and margin lines in the ~/.xtrkcad/xtrkcad.rc file.

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

- Ok button - updates the data and ends the dialog.

- Cancel button - ends the dialog without update.

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

The formats of the printer, margin and marginmap entries are:

    	WPRINTER.printer-num: printer-name=command
    	WMARGINMAP.margin-num: margin-name
    	WMARGIN.margin-name: top botton right left

where:

- printer-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.
- printer-name is the name of the printer as it appears in the Printer selection list.
- command is the command to invoke where %s will be replaced by the printer-name.
- margin-num is the next value in a sequential list (starting at 0). A number of entries are predefined.
- margin-name is the name of a type of printer as appears in the Margins selection list.
- top, botton, right, left are the values of the margins for that printer.

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

To add a Page Margins entry, select the next margin-num (leaving no gaps in the sequence) and add the two lines for marginmap and margins.

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 when ever you are printing an unknown font. You will be asked to supply a PostScript font name for a X font. This information is saved in ~/.xtrkcad/xtrkcad.rc for the next use.

The font alias map entries look like:

    	WFONT.X font name: PostScript font name

Return to Contents, Previous Page, Next Page