-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpaper.c
65 lines (45 loc) · 1.74 KB
/
paper.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include "machdep.h"
#include "paper.h"
static char CourierBold10[] = "Courier-Bold10";
static char Courier10[] = "Courier10";
static char Courier7[] = "Courier7";
static char HelveticaBold36[] = "Helvetica-Bold36";
static char TimesBold12[] = "Times-Bold12";
static char TimesRoman14[] = "Times-Roman14";
static char HelveticaBold28[] = "Helvetica-Bold28";
/* This table defines all of the possible paper types */
struct PaperMetrics PaperTypes[] = {
{ "a4",
842L, /* paper height = 297 mm */
595L, /* paper height = 210 mm */
CourierBold10, /* non-gaudy title font */
Courier10, /* portrait text font */
Courier7, /* landscape text font */
HelveticaBold36, /* gaudy mode page number font */
TimesBold12, /* gaudy mode date font */
TimesRoman14, /* gaudy mode title font */
HelveticaBold28, /* classification herder/footer font */
72L, /* width of boxes in gaudy mode */
36L, /* height of boxes in gaudy mode */
18L, /* height of bar in gaudy mode */
36L /* column separation */
},
{ "us",
792L, /* paper height = 11 inches */
612L, /* paper width = 8.5 inches */
CourierBold10, /* non-gaudy title font */
Courier10, /* portrait text font */
Courier7, /* landscape text font */
HelveticaBold36, /* gaudy mode page number font */
TimesBold12, /* gaudy mode date font */
TimesRoman14, /* gaudy mode title font */
HelveticaBold28, /* classification herder/footer font */
72L, /* width of boxes in gaudy mode */
36L, /* height of boxes in gaudy mode */
18L, /* height of bar in gaudy mode */
36L /* column separation */
},
{ NULL,
0L, 0L, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0L, 0L, 0L, 0L
}
};