next up previous contents
Next: Hewlett-Packard HP-GL Up: Using Hardcopy Devices Previous: Screendumps

Subsections


Postscript

The Postscript drivers supports Adobe Postscript in both monochrome and colour. The plotfile produced by this driver is an ASCII text file which may be edited locally if required.

The following resources are supported:

Postscript.Translate

Postscript.Translate is used when a printer dependent offset is required. Sometimes the plot origin is not in the location assumed by FEMGV, resulting in the output being clipped. By setting the environment variable
   Femsys.*.Postscript.Translate : y x translate
an offset of y points in the Y axis and x points in the X axis may be achieved. (A point is 1/72nd of an inch.)

Postscript.Linewidth

Postscript.Linewidth is another specialised resource; this allows the user to alter the linewidth used in the plot.

The linewidth can be altered by setting

   Femsys.*.Postscript.Linewidth : linewidth
where linewidth is the desired linewidth in user space; in the range 0 to 32000. A certain amount of trial and error will be involved when setting this environment variable.

Postscript.Logo

The resource Postscript.Logo is used in order to specify the name of a file which will be used in order to add a logo to the Postscript plot.

For example,

   Femsys.*.Postscript.Logo : /usr/local/corporate_logo
where the file /usr/local/corporate_logo contains the Postscript commands necessary for drawing the required logo. The contents of this file are inserted into the FEMGV plotfile immediately prior to the first scaling command - so the coordinate system in use is still default user space. There are two restrictions imposed on the contents of the logo file:

1.
The contents must be bracketed by gsave and grestore commands
2.
The maximum line length must not exceed 80 characters.

Controlling Character Fonts

Postscript supports a standard font set which consists 4 styles of Times, Helvetica and Courier. The specific font names are:

   Times-Roman  Times-Italic       Times-Bold      Times-BoldItalic
   Helvetica    Helvetica-Oblique  Helvetica-Bold  Helvetica-BoldOblique
   Courier      Courier-Oblique    Courier-Bold    Courier-BoldOblique

In addition to these standard fonts your printer manufacturer may offer further Postscript fonts; please consult your printer documentation.

The names of the desired Postscript fonts are communicated to FEMGV via the resources Postscript.LargeFont, Postscript.SmallFont and Postscript.TitleFont.

As well as the typeface it is possible to specify the size of the fonts, in points, using Postscript.FontSize, Postscript.SmallFontSize and Postscript.TitleFontSize

Lastly, the size of the FEMGV symbol markers may altered by specifying a scaling factor; Postscript.SymbolScale.

Controlling Page Size and Layout

The following resources affect the page size and layout:

Resource Name Default
Postscript.PageSize A4
Postscript.PageMargins 0.75+0.75
Postscript.PageSizeUnits inch
Postscript.Orientation Landscape

Postscript.PageSize can be one of the following predefined sizes - A5, A4, A3, A2, A1, A0, QUARTO - or a user defined size. A user defined page size is in the form

      WIDTHxHEIGHT

where WIDTH and HEIGHT are in Postscript.PageSizeUnits units. These can be inch, mm or point.

Colour or Monochrome

The resources Postscript.Colour and Postscript.Monochrome can be used to specify whether the plotfile will contain colour or grayscale output. Both of these resources can take the value true or false, so setting Postscript.Colour to true is the equivalent of setting Postscript.Monochrome to false, and vice versa.

Background Colour

The resource Postscript.Background allows you to control the colour used for the background of the plots. By default, White is used. This indicates that in effect no background colour is required. By setting Postscript.Background to be Black a black background can be requested. This setting may be useful when producing OHP slides.


next up previous contents
Next: Hewlett-Packard HP-GL Up: Using Hardcopy Devices Previous: Screendumps

Femsys Limited
9/10/1999