Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site uw-beaver Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!laser-lovers From: laser-lovers@uw-beaver Newsgroups: fa.laser-lovers Subject: Re: LaserJet as Printer Replacement Message-ID: <1154@uw-beaver> Date: Sun, 12-May-85 03:41:45 EDT Article-I.D.: uw-beave.1154 Posted: Sun May 12 03:41:45 1985 Date-Received: Mon, 13-May-85 03:17:20 EDT Sender: daemon@uw-beaver Organization: U of Washington Computer Science Lines: 40 From: ihnp4!mnetor!clewis@uw-beaver.arpa (Chris Lewis) In order to get 66 lines per page, you can modify the printer filter to emit the HP control sequences to change the vertical motion index. We use these in our System V printer filter at the beginning of every print job: echo "\033E\c" # Reset printer echo "\033&l66P\c" # Page length of 66 lines echo "\033&l2E\c" # Top margin of 2 lines echo "\033&l7.6C\c" # Vertical motion index of 7.6 echo "\033&l66F\c" # Text length of 66 lines [ Note: for example, the last one means: ESC&l66F (no carriage return) ] Once you've done this, any software using 66 lines per page will work transparently. The only drawback is that the lines are a little closer together than on a printer that can print on ALL of the page. The Laser won't go within about a half inch of the top or bottom. Similarly, when you are running landscape mode, you can use the same escape sequence, except that the VMI should be somewhat smaller (see the manual) for the shorter "length". We print "line-printer" like images using a 16 pitch font on a HP cartridge that gives us 176 (or so) characters horizontally and 66 vertically. Regarding another posting: I have the beginnings of a troff to HP filter. It works okay as long as you don't: 1) Change page length 2) Use fancy characters not in the HP 3) Try to change font sizes. (it attempts to enforce 10/inch) Has anybody got some font files (we don't got Berkeley fonts even tho we are running 4.2) that we could use in this? Anybody interested in this software? Chris Lewis, UUCP: {allegra, linus, ihnp4}!utzoo!mnetor!clewis BELL: (416)-475-8980 ext. 321