64 |
|
int maxwidth; /* maximum line width (dvi) */ |
65 |
|
|
66 |
|
static void makemap(void); |
67 |
< |
static void gettext(FILE *fp); |
67 |
> |
static void get_text(FILE *fp); |
68 |
|
static void arg_text(int ac, char *av[]); |
69 |
|
static void maptext(void); |
70 |
|
static void mapglyph(GLYPH *gl, int tx0, int ty0); |
139 |
|
} |
140 |
|
/* load font file */ |
141 |
|
ourfont = getfont(fontfile); |
142 |
+ |
if (!ourfont) |
143 |
+ |
exit(1); |
144 |
|
/* get text */ |
145 |
|
if (an == argc) |
146 |
< |
gettext(stdin); |
146 |
> |
get_text(stdin); |
147 |
|
else |
148 |
|
arg_text(argc-an, argv+an); |
149 |
|
|
220 |
|
if (ysiz % SSS) |
221 |
|
ysiz += SSS - ysiz%SSS; |
222 |
|
xdim = (xsiz+7)/8; |
223 |
< |
ourbitmap = (BYTE *)bmalloc(ysiz*xdim); |
223 |
> |
ourbitmap = (uby8 *)bmalloc(ysiz*xdim); |
224 |
|
if (ourbitmap == NULL) |
225 |
|
error(SYSTEM, "Out of memory in makemap"); |
226 |
|
memset((char *)ourbitmap, '\0', ysiz*xdim); |
228 |
|
|
229 |
|
|
230 |
|
static void |
231 |
< |
gettext( /* get text from a file */ |
231 |
> |
get_text( /* get text from a file */ |
232 |
|
FILE *fp |
233 |
|
) |
234 |
|
{ |
268 |
|
} |
269 |
|
return; |
270 |
|
memerr: |
271 |
< |
error(SYSTEM, "Out of memory in gettext"); |
271 |
> |
error(SYSTEM, "Out of memory in get_text"); |
272 |
|
} |
273 |
|
|
274 |
|
|