home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume24 / psroff3.0 / part18 / ps.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-09  |  1.0 KB  |  36 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:        PostScript Driver definitions
  9.  */
  10.  
  11. /* 2.3 91/02/20 */
  12.  
  13. /*    Points per inch (default PostScript resolution) */
  14. #define    PSRESOLUTION    72
  15. /*    Length scaling factor */
  16. #define    PSSCALEFACTOR    (TROFFRESOLUTION/PSRESOLUTION)
  17. /*    Troff assumes 7.5" paper width, most macro packages print in
  18.     6.5" area within that.  Sooo, we'll center the paperwidth on the
  19.     physical page - implying .5" inch physical margins.
  20.     Note also: ps.c operates in 432'nds, but they're scaled down
  21.     to 72'nds during emission.
  22.  */
  23. #define    TROFF2PSX(x) (x + pageoffset)
  24. /*    11" paper length (note the reversed sign!) */
  25. #define    TROFF2PSY(y) (pagelength - pageyoffset - (y))
  26.  
  27. #define    FONTMACRO
  28.  
  29. #define    EMITPS    printf
  30.  
  31. /*    Entry points: */
  32. extern int psProlog(), psEpilog(), psChar(), psPage(),psDraw(),
  33.     psOverlay(), psXlate();
  34.  
  35. extern struct troff2befont psSymFont[], psStdFont[];
  36.