home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume24 / psroff3.0 / part19 / dt.h next >
Encoding:
C/C++ Source or Header  |  1991-10-09  |  895 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:        Ditroff driver definitions
  9.             Hacked from ps.h
  10.  */
  11.  
  12. /* 2.3 91/02/20 */
  13.  
  14. /*    This is actually done in the back-end */
  15. #define    DTRESOLUTION    300
  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    TROFF2DTX(x) ((((long) (x)+pageoffset)*dtresolution)/TROFFRESOLUTION)
  20. /*    11" paper length */
  21. #define    TROFF2DTY(y) ((((long) (y)+pageyoffset)*dtresolution)/TROFFRESOLUTION)
  22.  
  23. extern int dtProlog(), dtEpilog(), dtChar(), dtPage(), dtPassthru(), dtDraw();
  24.  
  25. #ifdef    DT
  26. extern struct troff2befont dtSymFont[], dtStdFont[];
  27. extern int dtresolution;
  28. #endif
  29.