204 |
|
getrlibpath(), R_OK)) == NULL) { |
205 |
|
sprintf(errmsg, "cannot find text file \"%s\"", |
206 |
|
tm->oargs.sarg[tndx(tm)]); |
207 |
< |
error(USER, errmsg); |
207 |
> |
error(SYSTEM, errmsg); |
208 |
|
} |
209 |
|
if ((fp = fopen(s, "r")) == NULL) { |
210 |
|
sprintf(errmsg, "cannot open text file \"%s\"", s); |
222 |
|
tlp->next = NULL; |
223 |
|
/* get the font */ |
224 |
|
t->f = getfont(tm->oargs.sarg[fndx(tm)]); |
225 |
+ |
if (!t->f) |
226 |
+ |
objerror(tm, USER, "font load error"); |
227 |
|
/* compute character spacing */ |
228 |
|
i = sndx(tm); |
229 |
|
d = i < tm->oargs.nfargs ? tm->oargs.farg[i] : 0.0; |