home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright 1985, 1986, 1987, 1988, 1989, 1990, 1991 Chris Lewis
- All Rights Reserved
-
- See the LICENSE file for a full description of restrictions under which
- this software is provided.
-
- Function: PostScript Driver definitions
- */
-
- /* 2.3 91/02/20 */
-
- /* Points per inch (default PostScript resolution) */
- #define PSRESOLUTION 72
- /* Length scaling factor */
- #define PSSCALEFACTOR (TROFFRESOLUTION/PSRESOLUTION)
- /* 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.
- Note also: ps.c operates in 432'nds, but they're scaled down
- to 72'nds during emission.
- */
- #define TROFF2PSX(x) (x + pageoffset)
- /* 11" paper length (note the reversed sign!) */
- #define TROFF2PSY(y) (pagelength - pageyoffset - (y))
-
- #define FONTMACRO
-
- #define EMITPS printf
-
- /* Entry points: */
- extern int psProlog(), psEpilog(), psChar(), psPage(),psDraw(),
- psOverlay(), psXlate();
-
- extern struct troff2befont psSymFont[], psStdFont[];
-