home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume24 / psroff3.0 / part19 / lj.h < prev   
Encoding:
C/C++ Source or Header  |  1991-10-09  |  816 b   |  29 lines

  1. /*
  2.     Copyright 1985, 1986, 1987, 1988, 1989, 1990, 1991 Chris Lewis
  3.         All Rights Reserved
  4.  
  5.     See the LICENSE file for a full description of restrictions under which
  6.     this software is provided.
  7.  
  8.     Function:        Laserjet Driver definitions
  9.  */
  10.  
  11. /* 2.2 91/02/20 */
  12.  
  13. /*    We're using decipoints */
  14. #define    LJRESOLUTION    720
  15.  
  16. /*    Troff assumes 7.5" paper width, most macro packages print in
  17.     6.5" area within that.  Sooo, we'll center the paperwidth on the
  18.     physical page - implying .5" inch physical margins.*/
  19. #define    TROFF2LJX(x) (((long) (x)+pageoffset)*LJRESOLUTION/TROFFRESOLUTION)
  20.  
  21. /*    11" paper length */
  22. #define    TROFF2LJY(y) (((long) (y)+pageyoffset)*LJRESOLUTION/TROFFRESOLUTION)
  23.  
  24. extern int ljProlog(), ljEpilog(), ljChar(), ljPage();
  25.  
  26. extern struct troff2befont ljSymFont[], ljStdFont[];
  27.  
  28. extern int fontCount;
  29.