Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!decvax!decwrl!amdcad!cae780!tektronix!uw-beaver!fluke!ssc-vax!housen
From: housen@ssc-vax.UUCP
Newsgroups: comp.sys.mac
Subject: laserwriter linewidth
Message-ID: <979@ssc-vax.UUCP>
Date: Mon, 8-Dec-86 20:26:33 EST
Article-I.D.: ssc-vax.979
Posted: Mon Dec  8 20:26:33 1986
Date-Received: Sun, 14-Dec-86 05:36:34 EST
Distribution: net
Organization: Boeing Aerospace Co., Seattle, WA
Lines: 24



A few days ago I posted a question regarding how one can set the
line width used by the Laserwriter.  The tech support people at Apple
provided an answer, which I am passing on in case anyone is interested.

All you need to do is make a call to PicComment with kind=182 (see IM),
dataSize=4 and a dataHandle which leads to a Quickdraw point.  The
vertical component of the point is the numerator and the horizontal
component is the denominator of a scaling factor that the current
pen size is multiplied by to obtain a new pen size.  For example,
if the point is (v=2,h=7) then the pen width and height are multiplied
by 2/7 to obtain the new pen size.  Apparently there was an error in
Tech Note #91, which claimed that the new pen size is given directly
by the components of the point.

This seems to work, although I found that I needed to preceede the
PicComment with at least one call to DrawString or LineTo (e.g. write
a space character with DrawString), otherwise nothing printed.  Argh.


                             Kevin Housen

                             Boeing Aerospace, Seattle