home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2100 / ps.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  1.1 KB  |  37 lines

  1. /*    Copyright 1985, 1986, 1987, 1988 13:09:42 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:        ps.h 2.2 90/10/12
  10.     Author:     Chris Lewis
  11.     Specs:        PostScript Driver definitions
  12.  */
  13.  
  14. /*    Points per inch (default PostScript resolution) */
  15. #define    PSRESOLUTION    72
  16. /*    Length scaling factor */
  17. #define    PSSCALEFACTOR    (TROFFRESOLUTION/PSRESOLUTION)
  18. /*    Troff assumes 7.5" paper width, most macro packages print in
  19.     6.5" area within that.  Sooo, we'll center the paperwidth on the
  20.     physical page - implying .5" inch physical margins.
  21.     Note also: ps.c operates in 432'nds, but they're scaled down
  22.     to 72'nds during emission.
  23.  */
  24. #define    TROFF2PSX(x) (x + pageoffset)
  25. /*    11" paper length (note the reversed sign!) */
  26. #define    TROFF2PSY(y) (pagelength - pageyoffset - (y))
  27.  
  28. #define    FONTMACRO
  29.  
  30. #define    EMITPS    printf
  31.  
  32. /*    Entry points: */
  33. extern int psProlog(), psEpilog(), psChar(), psPage(),psDraw(),
  34.     psOverlay(), psXlate();
  35.  
  36. extern struct troff2befont psSymFont[], psStdFont[];
  37.