home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2100 / dt.h next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  997 b   |  30 lines

  1. /*    Copyright 1985, 1986, 1987, 1988 13:09:46 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:        dt.h 2.2 90/10/12
  10.     Author:     Chris Lewis
  11.     Specs:        Ditroff driver definitions
  12.             Hacked from ps.h
  13.  */
  14.  
  15. /*    This is actually done in the back-end */
  16. #define    DTRESOLUTION    300
  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. #define    TROFF2DTX(x) ((((long) (x)+pageoffset)*dtresolution)/TROFFRESOLUTION)
  21. /*    11" paper length */
  22. #define    TROFF2DTY(y) ((((long) (y)+pageyoffset)*dtresolution)/TROFFRESOLUTION)
  23.  
  24. extern int dtProlog(), dtEpilog(), dtChar(), dtPage(), dtPassthru(), dtDraw();
  25.  
  26. #ifdef    DT
  27. extern struct troff2befont dtSymFont[], dtStdFont[];
  28. extern int dtresolution;
  29. #endif
  30.