ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/text.c
(Generate patch)

Comparing ray/src/rt/text.c (file contents):
Revision 2.26 by greg, Tue Jul 8 18:25:00 2014 UTC vs.
Revision 2.28 by greg, Fri Nov 19 22:51:31 2021 UTC

# Line 204 | Line 204 | gettext(                       /* get text structure for material */
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);
# Line 222 | Line 222 | gettext(                       /* get text structure for material */
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines