home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume20 / psroff / part01 / dt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-17  |  1.2 KB  |  46 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:        dt.h
  10.     Author:     Chris Lewis
  11.     Specs:        Ditroff driver definitions
  12.             Hacked from ps.h
  13.  */
  14.  
  15. #ifndef    SVR3
  16. #ifndef    lint
  17. static char dtID[] = "@(#)dt.h: 1.1 Copyright 89/06/14 17:40:54 Chris Lewis";
  18. #endif
  19. #else
  20. #ident  "@(#)dt.h: 1.1 Copyright 89/06/14 17:40:54 Chris Lewis"
  21. #endif
  22.  
  23. /*    This is actually done in the back-end */
  24. #define    DTRESOLUTION    432
  25. /*    Length scaling factor */
  26. #define    DTSCALEFACTOR    ((double) DTRESOLUTION / 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    TROFF2DTX(x) ((x) * DTSCALEFACTOR + DTRESOLUTION / 2)
  31. /*    11" paper length */
  32. #define    TROFF2DTY(y) ((y) * DTSCALEFACTOR)
  33.  
  34. extern double pagelength;
  35.  
  36. #define    DTLIB    "lib"
  37. #define    DTFONTS    "fonts"
  38.  
  39. extern int dtProlog(), dtEpilog(), dtChar(), dtPage(), dtFontSel();
  40.  
  41. #define    DTNAME    "dt"
  42.  
  43. #ifdef    DT
  44. struct troff2befont dtSymFont[], dtStdFont[];
  45. #endif
  46.