next up previous contents
Next: CGM Up: Using Hardcopy Devices Previous: Postscript

Subsections


Hewlett-Packard HP-GL

Support for HP-GL is provided via two separate drivers; HPGL/1 and HPGL/2. The plotfiles produced by these drivers are ASCII text files which may be edited locally if required, although an editor which can cope sensibly with ASCII escape sequences is required.

HPGL/1

HPGL/1 is basically designed for use with HP compatible pen plotters; it provides no facilities for colour filling polygons. By default, the driver assumes that it is driving an HP7475 plotter with a 6 pen carousel.

Output Medium

Setting the environment variable FV_TRANSP to true will cause the pen velocity to be set to a value suitable for plotting on acetate sheet rather than paper.

Number of Pens

Because the driver assumes that it is dealing with a 6 pen plotter the environment variable FV_NUMPENS must be specified if the actual plotter has a different number of pens. Also, some entry level pen plotters are particularly slow at pen changes, and it is often useful to be able to produce a quick monochrome plot by forcing the driver to use just one pen by setting

   FV_NUMPENS=1

The use of this environment variable should not be confused with the FEMGV command UTILITY SETUP PLOTTER COLOURS n which only indicates to the software the number of colours which are available for colour contour pictures.

Y-Cable Connection

If the plotter is connected to the printer port on a terminal via an HP Y-Cable then setting FV_YCABLE to true will insert the appropriate commands into the plotfile so that automatic switching will be performed.

HPGL/2

HPGL/2 is designed for use with HP compatible raster plotters; this include devices such as inkjet printers and laser printer. Unlike HPGL/1 it does provide facilities for 'colour' filling polygons. This driver would not normally be used with pen plotters.

Mode Switching

 By default, an instruction which will switch the plotter into HPGL/2 mode is placed at the start of the plotfile. This feature enables the plotfile to be sent to a dual mode plotter without the need to manually switch modes.

Because this switching code can cause some DTP packages a certain amount of confusion the resource HPGL2.AutoSwitch can be set to true if the destination device is capable of automatically switching into HPGL/2 mode.

Output Medium

Setting the resource HPGL2.Acetate to true will cause the pen velocity to be set to a value suitable for plotting on acetate sheet rather than paper.

Colour or Monochrome

By default this driver will produce a plotfile for use on colour plotters; the Paintjet for example. If the resource HPGL2.Monochrome is set to true the driver is forced to produce output for monochrome devices such as the LaserJet. Filled polygons will be filled using the output device's built-in greyscales.

There are two resources for controlling the colour setting of the output; HPGL2.Colour and HPGL2.Monochrome. Both of these resources can take the value true or false, so setting HPGL2.Colour to true is the equivalent of setting HPGL2.Monochrome to false, and vice versa.

Page Orientation

The orientation of the plot, landscape or portrait, is controlled by the resource HPGL2.Orientation which can take values of Landscape or Portrait. The default is landscape.

Plot Scaling

The resource HPGL2.PageLayout is used in order to scale the size of the plot. Technically speaking, it is used to determine the HP-GL/2 IR scale command parameters. This command adjusts the P1 and P2 reference points prior to an SC scale command. The default action is to shift P1 up and right by 5 percent, and P2 down and left 10 percent of the page size.

This default scale is represented as,

               Femsys.*.HPGL2.PageLayout : 5,5,90,90

Controlling Character Size

It is possible to scale the size of the characters and marker symbols in an HPGL/2 plotfile using these resources:

Resource Name Default
HPGL2.FontSizeScale 1.0
HPGL2.SmallFontSizeScale 1.0
HPGL2.TitleFontSizeScale Same as FontSizeScale
HPGL2.SymbolScale 1.0

Controlling Linewidth

It is possible to specify the required thickness, in mms, for each of the three linewidths used in an HPGL/2 plotfile using these resources:

Resource Name Default
HPGL2.NormalLineWidth 0.0 (thiness possible)
HPGL2.ThickLineWidth 0.15
HPGL2.ThickestLineWidth 0.35

HP-PCL

HP-PCL was designed mainly for text output, but it also supports the plotting of raster or bitmap images. The FEMGV PAINTJET, LASERJET and DESKJET drivers all use HP-PCL bitmap format. The plotfiles produced by these drivers are in binary format and cannot be edited.

Supported Devices

Computer printer manufacturers seem to announce new models on a weekly basis and therefore this section is far from comprehensive. Currently the FEMGV HP-PCL driver is known to work with the following devices:

Common Feature

The PAINTJET, LASERJET and DESKJET drivers share a number of common features. The facilities for controlling the behaviour of the driver are explained in the following sections. Please note that resources are described in a generic way, so that Orientation, for example, could be Paintjet.Orientation, Laserjet.Orientation or Deskjet.Orientation. Where a resource applies to a particular device, rather than HP-PCL in general, then the full resource name is given.


next up previous contents
Next: CGM Up: Using Hardcopy Devices Previous: Postscript

Femsys Limited
9/10/1999