home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume20 / psroff / part01 / lj.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-17  |  1.3 KB  |  52 lines

  1. /*    Copyright 1985, 1986, 1987, 1988 Chris Lewis
  2.         All Rights Reserved
  3.  
  4.     Permission to copy and further distribute is freely given provided 
  5.     this copyright notice remains intact and that this software is not 
  6.     sold for profit.
  7.  
  8.     Project:    Generic Troff drivers
  9.     Module:        lj.h
  10.     Author:     Chris Lewis
  11.     Specs:        Laserjet Driver definitions
  12.             Hacked from ps.h
  13.  */
  14.  
  15. #ifndef    SVR3
  16. #ifndef    lint
  17. static char ljID[] = "@(#)lj.h: 1.4 Copyright 89/04/21 11:47:35 Chris Lewis";
  18. #endif
  19. #else
  20. #ident  "@(#)lj.h: 1.4 Copyright 89/04/21 11:47:35 Chris Lewis"
  21. #endif
  22.  
  23. /*    We're using decipoints */
  24. #define    LJRESOLUTION    720
  25. /*    Length scaling factor */
  26. #define    LJSCALEFACTOR    ((double) LJRESOLUTION / TROFFRESOLUTION)
  27. /*    Troff assumes 7.5" paper width, most macro packages print in
  28.     6.5" area within that.  Sooo, we'll center the paperwidth on the 
  29.     physical page - implying .5" inch physical margins.*/
  30. #define    TROFF2LJX(x) ((x) * LJSCALEFACTOR + LJRESOLUTION / 2)
  31. /*    11" paper length */
  32. #define    TROFF2LJY(y) ((y) * LJSCALEFACTOR)
  33.  
  34. extern double pagelength;
  35.  
  36. #define    LASTLJFONT    ('O')
  37.  
  38. #define    LJLIB    "lib"
  39. #define    LJFONTS    "fonts"
  40.  
  41. extern int ljProlog(), ljEpilog(), ljChar(), ljPage(), ljFontSel();
  42.  
  43. #define    LJNAME    "lj"
  44. #define    LKNAME    "lk"
  45.  
  46. #ifdef    LJ
  47. struct troff2befont ljSymFont[], ljStdFont[];
  48. #endif
  49. #ifdef    LK
  50. struct troff2befont lkSymFont[], lkStdFont[];
  51. #endif
  52.