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: lj.h
- Author: Chris Lewis
- Specs: Laserjet Driver definitions
- Hacked from ps.h
- */
-
- #ifndef SVR3
- #ifndef lint
- static char ljID[] = "@(#)lj.h: 1.4 Copyright 89/04/21 11:47:35 Chris Lewis";
- #endif
- #else
- #ident "@(#)lj.h: 1.4 Copyright 89/04/21 11:47:35 Chris Lewis"
- #endif
-
- /* We're using decipoints */
- #define LJRESOLUTION 720
- /* Length scaling factor */
- #define LJSCALEFACTOR ((double) LJRESOLUTION / 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 TROFF2LJX(x) ((x) * LJSCALEFACTOR + LJRESOLUTION / 2)
- /* 11" paper length */
- #define TROFF2LJY(y) ((y) * LJSCALEFACTOR)
-
- extern double pagelength;
-
- #define LASTLJFONT ('O')
-
- #define LJLIB "lib"
- #define LJFONTS "fonts"
-
- extern int ljProlog(), ljEpilog(), ljChar(), ljPage(), ljFontSel();
-
- #define LJNAME "lj"
- #define LKNAME "lk"
-
- #ifdef LJ
- struct troff2befont ljSymFont[], ljStdFont[];
- #endif
- #ifdef LK
- struct troff2befont lkSymFont[], lkStdFont[];
- #endif
-