Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!haven!umd5!vbob From: vbob@umd5.umd.edu (Bob Shields) Newsgroups: comp.sys.mac.misc Subject: SetLineWidth: DeskWriter vs LaserWriter Message-ID: <6624@umd5.umd.edu> Date: 6 Jun 90 02:55:41 GMT Reply-To: vbob@umd5.umd.edu (Bob Shields) Distribution: usa Organization: University of Maryland, College Park Lines: 41 The following is a code fragment I have used to test "SetLineWidth" PicComments on both my HP Deskwriter at home and a LaserWriter at work. It seems to produce different results based on which printer I use. In both cases, the first two lines are drawn "correctly" (at 1 point and .25 point thinkness, respectively). However, on the LaserWriter, the last line drawn is at 1 point thickness, which is how I believe things are supposed to work. But on the Deskwriter, the last line is drawn at 4 points thickness. Am I interpreting the way SetLineWidth works incorrectly, or is there a problem in one of the printer drivers? (I am using Rev A.01.00 of the DeskWriter driver). Point **hPt; TextFont(applFont); MoveTo(20, 20); DrawString("\pThis is a test."); MoveTo(20, 40); LineTo(120, 40); MoveTo(20, 60); DrawString("\pThe above line should be 1 point in width."); hPt = (Point **) NewHandle(sizeof(Point)); (**hPt).h = 4; (**hPt).v = 1; PicComment(SetLineWidth, sizeof(Point), hPt); MoveTo(20, 100); LineTo(120, 100); MoveTo(20, 120); DrawString("\pThe above line should be .25 point in width."); (**hPt).h = 1; (**hPt).v = 4; /* should it be '1' or '4' ? */ PicComment(SetLineWidth, sizeof(Point), hPt); MoveTo(20, 160); LineTo(120, 160); MoveTo(20, 180); DrawString("\pThe above line should be 1 point in width."); -- ----------- Bob Shields vbob@umd5.umd.edu