home *** CD-ROM | disk | FTP | other *** search
- /* Copyright 1985, 1986, 1987, 1988 Chris Lewis
- All Rights Reserved
-
- Permission to copy and further distribute is freely given provided
- this copyright notice remains intact and that this software is not
- sold for profit.
-
- Project: Generic Troff drivers
- Module: ps.h
- Author: Chris Lewis
- Specs: PostScript Driver definitions
- */
-
- #ifndef SVR3
- #ifndef lint
- static char psID[] = "@(#)ps.h: 1.14 Copyright 89/04/21 11:47:53 Chris Lewis";
- #endif
- #else
- #ident "@(#)ps.h: 1.14 Copyright 89/04/21 11:47:53 Chris Lewis"
- #endif
-
- /* Points per inch (default PostScript resolution) */
- #define PSRESOLUTION 72
- /* Length scaling factor */
- #define PSSCALEFACTOR ((double) PSRESOLUTION / TROFFRESOLUTION)
- /* Troff assumes 7.5" paper width, most macro packages print in
- 6.5" area within that. Sooo, we'll center the paperwidth on the
- physical page - implying .5" inch physical margins.*/
- #define TROFF2PSX(x) ((x) * PSSCALEFACTOR + PSRESOLUTION / 2)
- /* 11" paper length (note the reversed sign!) */
- #define TROFF2PSY(y) ((pagelength - (y)) * PSSCALEFACTOR)
-
- extern double pagelength;
-
- #define LASTPSFONT ('O')
-
- #define FONTMACRO
-
- #define PSLIB "lib.ps"
- #define PSFONTS "fonts.ps"
- #define EMITPS printf
-
- /* Entry points: */
- extern int psProlog(), psEpilog(), psChar(), psPage(), psFontSel(),
- psOverlay(), psXlate(), psBin();
-
- #define PSNAME "ps"
-
- struct troff2befont psSymFont[], psStdFont[];
-