16 |
|
|
17 |
|
#include "font.h" |
18 |
|
|
19 |
– |
#include "paths.h" |
20 |
– |
|
19 |
|
#ifndef SSS |
20 |
|
#define SSS 3 /* super-sample size */ |
21 |
|
#endif |
46 |
|
|
47 |
|
FONT *ourfont; /* our font */ |
48 |
|
|
51 |
– |
char *libpath; /* library search path */ |
52 |
– |
|
49 |
|
typedef struct line { |
50 |
|
char *s; /* line w/o LF */ |
51 |
|
short *sp; /* character spacing */ |
122 |
|
exit(1); |
123 |
|
} |
124 |
|
/* load font file */ |
129 |
– |
if ((libpath = getenv(ULIBVAR)) == NULL) |
130 |
– |
libpath = DEFPATH; |
125 |
|
ourfont = getfont(fontfile); |
126 |
|
/* get text */ |
127 |
|
if (an == argc) |
134 |
|
/* convert text to bitmap */ |
135 |
|
maptext(); |
136 |
|
/* print header */ |
137 |
+ |
newheader("RADIANCE", stdout); |
138 |
|
printargs(argc, argv, stdout); |
139 |
|
fputformat(COLRFMT, stdout); |
140 |
|
putchar('\n'); |
211 |
|
gettext(fp) /* get text from a file */ |
212 |
|
FILE *fp; |
213 |
|
{ |
219 |
– |
char *fgets(); |
214 |
|
char buf[MAXLINE]; |
215 |
|
register LINE *curl; |
216 |
|
int len; |