Utah Raster Toolkit  9999-git
URT Development version (post-3.1b)
dvirle.h
Go to the documentation of this file.
1 /* verser globals */
2 
3 /*
4  * Dvirle was rewritten based on a program called "verser".
5  * The original program was written by Janet Incerpi of Brown University
6  * and was for the original version of TeX which also used a different kind
7  * of font file. It was modified at the University of Washington by
8  * Richard Furuta (bringing it up to TeX82 and PXL files) and Carl Binding
9  * (adding horizontal printing). I then tore it to shreds and rebuilt
10  * it; the new one is much faster (though less portable: it has inline
11  * assembly code in various critical routines).
12  *
13  * Chris Torek, 20 May 1984, University of Maryland CS/EE
14  *
15  * The program has since gone through much revision. The details are
16  * rather boring, but there is one important point: The intermediate
17  * file format has changed.
18  *
19  * Converted to dvirle by Spencer W. Thomas, April 1987, U of Utah CS.
20  */
21 
22 /*
23  * Version number. Increment this iff the intermediate file format
24  * makes an incompatible change. This number may not be > 127.
25  */
26 #define VERSION 2
27 
28 #define NFONTS 100 /* max number of fonts */
29 
30 #define FONTSHIFT 14 /* font shift in fcp's */
31 #define CHARSHIFT 7 /* char shift in fcp's */
32 #define CHARMASK 127 /* char mask in fcp's - 128 chars/font */
33 #define PARTMASK 127 /* part mask in fcp's */
34 
35 #define DPI 300 /* Dots per inch */
36 #define ROWS 600 /* lines in buffer (2 inches) */
37 #define COLUMNS 319 /* 2550 bits per line / 8 bits per char */
38 #define MaxCharHeight (ROWS-1) /* max bit height of a single char or rule */
39 #define MaxPageHeight 3300 /* max bit height of a page */
40 #define MaxPageWidth 2550 /* max bit width of a page */
41 
42 #define DefaultMaxDrift 2
43 
44 #define DefaultLeftMargin 300
45 #define MinimumLeftMargin 15
46 #define DefaultTopMargin 300
47 #define MinimumTopMargin 15
48 #define DefaultBottomMargin 300
49 
50 #ifndef min
51 #define min(a,b) ((a) < (b) ? (a) : (b))
52 #endif
#define ROWS
Definition: dvirle.h:36