Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ps strokes in freehand

1 view
Skip to first unread message

Andreas Schneider

unread,
Feb 3, 1995, 3:03:34 PM2/3/95
to
i am looking for advice on how to define custom postscript strokes in
freehand for drawing maps etc.

thank you very much for any assistance,

andreas schneider
andreas schneider

tokyo 158
setagaya ku
okusawa 2.42.3

fn +81- 43- 274 5531
fx +81- 3- 3723 9498
and...@wni.com.jp

Dennis McClendon

unread,
Feb 4, 1995, 11:04:09 PM2/4/95
to
andreas schneider asks


>i am looking for advice on how to define custom postscript strokes in
>freehand for drawing maps etc.

You will find much helpful advice in Olav Martin Kvern's excellent books
REAL WORLD FREEHAND 3 and REAL WORLD FREEHAND 4.

A custom line pattern that I often use is the "line with crossties (the
British say sleepers)" used on North American maps to represent railroad
tracks. Essentially this is a dashed line with duplicate continuous line
on top. For that, the custom PostScript code is

gsave [0.2 8] 0 setdash 3 setlinewidth 0 setgray stroke grestore
gsave 0.5 setlinewidth 0 setgray stroke grestore newpath

What the parameters mean (all measurements in points): 0.2 is length of
ties (dashes); 8 is distance between them. 3 is their width. 0.5 is the
width of the continuous line.

Examining the code, you can see how it breaks into two different lines at
the second "gsave" (but type it all continuously in the dialog box, with no
returns). The value 0 before the operator setgray sets the screen value to
100% (black or whatever). To make it a 30% gray line, make this value .7
(note the decimal value).

Ole helped me develop this custom line. Hope it helps you get started
experimenting.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Dennis McClendon, Chicago CartoGraphics dm...@uhuru.uchicago.edu

0 new messages