The following keyword(s) may be used outside of the driver blocks to set the default print driver.
A driver block begins with a HardCopyDevice line naming the driver, and ends with the next HardCopyDevice line or end of file. In addition to the HardCopy... keywords that specify driver defaults, any of the keywords described in the Presentation Attributes and Attribute Colors categories of the Technology File Attributes section A.8 can be used. The attribute or color will then apply while in print mode and the driver is selected, both on-screen and in the driver output. The keyword formats are exactly as described in these subsections. If not given in a driver block, the driver will use the attribute or color values set in the main part of the technology file, or the program defaults if no value is specified.
Layer colors, fill, and visibility can be set on a per-layer basis for the driver, by including a ``mini-layer block''. This is a truncated version of the layer blocks described in Technology File Layer Blocks, section A.6. The only keywords which are accepted in a mini-layer block are RGB (to set the color), Filled (to set the fill pattern or outline style, and Invisible (to set visibility). However, there are two additional special keywords that may be included in specific drivers:
``THE HP-GL2 AND HP RTL REFERENCE GUIDE: A HANDBOOK FOR PROGRAM DEVELOPERS''from Hewlett-Packard, (ISBN 0-201-63325-6) pages 127-129. This is summarized below:
filltype | description | option1 | option2 |
---|---|---|---|
1 | solid, bidirectional | ignored | ignored |
2 | solid, unidirectional | ignored | ignored |
3 | hatched, parallel lines | line spacing | line angle |
4 | crosshatched | line spacing | line angle |
10 | shadings | shading level | ignored |
11 | not supported | ignored | ignored |
There are 1016 dots per inch and angles are in degrees. Shading level is 0-100. If the HPGLfilled keyword is supplied for a layer and the filltype and options (if given) are valid, that fill will be used with the layer in HPGL output. There is presently no way to assign the layer color.
This parameter must be added to the technology file with a text editor. The default is no fill. Note that the fill patterns set on the screen in hard copy mode are not used by the HP-GL driver.
0 | No fill |
... | shades |
20 | Full saturation of the color |
... | tints |
40 | White |
41 | 30 degree left diagonal pattern |
42 | 30 degree right diagonal pattern |
43 | 30 degree crosshatch |
44 | 45 degree left diagonal pattern |
45 | 45 degree right diagonal pattern |
46 | 45 degree crosshatch |
47 | Bricks |
48 | Circles |
49 | Horizontal lines |
50 | Vertical lines |
51 | Crosshatch |
52 | Fish scales |
53 | Small fish scales |
54 | Octagons |
55 | Horizontal "tire treads" |
56 | Vertical "tire treads" |
Values 1 to 19 are ``shades'' of the color, from darker to lighter, a shade is defined as the color mixed with black. Values from 21 to 39 are ``tints'' of the color from the color to white, a tint is defined as the color mixed with white. The XfigFilled parameter must be added to the technology file with a text editor. The default is no fill. Note that the fill patterns set on the screen in hard copy mode are not used by the xfig driver.
As for regular layer blocks, a mini-layer block starts with a PhysLayer or ElecLayer keyword, or one of the aliases. The layer name given must be the name of a layer supplied in one of the regular layer blocks. A mini-layer block terminates when a new mini-layer block starts, or at the end of the driver block. The block order, and order with respect to other keywords, is arbitrary.
The other keywords of the driver block are described below.
hp_laser_pclIf the ``off'' keyword is given (``disable'' and ``n'' are synonyms), the driver is disabled, and will not appear in the Format menu of the Print Control Panel.
hpgl_line_draw_color
postscript_bitmap
postscript_bitmap_encoded
postscript_bitmap_color
postscript_bitmap_color_encoded
postscript_line_draw
postscript_line_draw_color
windows_native
xfig_line_draw_color
image
See the description of the Print button in the File Menu (8.6.2) for more information on these drivers.
0 | Legend button is off |
1 | Legend button is on |
2 | Legend button is grayed and inactive |
bit 0 set | Landscape on, Portrait off |
bit 0 unset | Landscape off, Portrait on |
bit 1 set | Best Fit button on |
bit 1 unset | Best Fit button off |
Example:
HardCopyDevice postscript_line_draw
HardCopyResol 72 75 100 150 200 300 400
HardCopyDefResol 2
This will select 100 as the resolution for the postscript_line_draw driver when the Print Control Panel first appears. The resolution can be changed with the menu.