16 |
|
|
17 |
|
#define MAXLINE 512 /* longest allowable line */ |
18 |
|
|
19 |
< |
char *fontfile = "/usr/local/lib/ray/helvet.fnt"; /* our font file */ |
19 |
> |
char *fontfile = "helvet.fnt"; /* our font file */ |
20 |
|
|
21 |
|
COLR bgcolr = WHTCOLR; /* background color */ |
22 |
|
COLR fgcolr = BLKCOLR; /* foreground color */ |
49 |
|
LINE *ourtext; /* our text */ |
50 |
|
int nlines, maxline; /* text dimensions */ |
51 |
|
|
52 |
< |
char *malloc(), *calloc(); |
52 |
> |
extern char *malloc(), *calloc(); |
53 |
> |
extern FILE *fropen(); |
54 |
|
|
55 |
|
|
56 |
|
main(argc, argv) |
155 |
|
int gn, ngv, gv; |
156 |
|
register GLYPH *g; |
157 |
|
|
158 |
< |
if ((fp = fopen(fontfile, "r")) == NULL) { |
159 |
< |
fprintf(stderr, "cannot open font file \"%s\"\n", |
158 |
> |
if ((fp = fropen(fontfile)) == NULL) { |
159 |
> |
fprintf(stderr, "cannot find font file \"%s\"\n", |
160 |
|
fontfile); |
161 |
|
exit(1); |
162 |
|
} |