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

Comparing ray/src/common/font.c (file contents):
Revision 2.6 by greg, Sat Nov 21 21:35:36 1992 UTC vs.
Revision 2.8 by greg, Thu May 20 14:32:50 1993 UTC

# Line 175 | Line 175 | int  cis;                      /* intercharacter spacing */
175          int  linelen;
176          register GLYPH  *gp;
177  
178 +        linelen = 0;
179          gp = NULL;
180          while (*tp && (gp = f->fg[*tp++&0xff]) == NULL)
181                  *sp++ = 0;
182          cis /= 2;
183 <        linelen = *sp = cis;
183 >        *sp = cis;
184          while (gp != NULL) {
185                  if (gp->nverts) {               /* regular character */
186                          linelen += *sp++ += cis - gp->left;
# Line 214 | Line 215 | int  nsi;                      /* minimum number of spaces for indent */
215                                          /* start by squeezing it */
216          squeeztext(sp, tp, f, cis);
217                                          /* now, realign spacing */
218 <        len = 0;
218 <        width = alen = *sp++;
218 >        width = *sp++;
219          while (*tp) {
220 +                len = alen = 0;
221                  nsp = sp;
222                  for (end = tp; *end; end = tab) {
223                          tab = end + 1;
# Line 240 | Line 241 | int  nsi;                      /* minimum number of spaces for indent */
241                          *sp++ += alen;
242                          len -= alen;
243                  }
243                len = 0;
244                alen = 0;
244                  tp = tab;
245          }
246          return(width);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines