dana@dino.bellcore.com (Dana A. Chee) (07/19/88)
Below are patches to the contributed program gfto (contrib/gfto on the
X11R2 tape). These fix a fallthrough error in a case statement and
cause the ENCODING of the charater to match what metafont thought it
was.
Enjoy!!
==================== gfto.diffs ====================
*** bdf.c.orig Fri Mar 4 15:47:41 1988
--- bdf.c Fri Jul 8 08:57:15 1988
***************
*** 42,49 ****
for(i=0,pp=pc; i < nchars; i++,pp++) {
p = *pp;
! printf("STARTCHAR C%03d\n",i);
! printf("ENCODING %d\n",i);
printf("SWIDTH %d %d\n",
(p->boc.max_m*72000)/(pts*hpxpi),0);
printf("DWIDTH %d %d\n",p->boc.max_m,0);
--- 42,49 ----
for(i=0,pp=pc; i < nchars; i++,pp++) {
p = *pp;
! printf("STARTCHAR C%03x\n",i);
! printf("ENCODING %d\n",p->boc.c);
printf("SWIDTH %d %d\n",
(p->boc.max_m*72000)/(pts*hpxpi),0);
printf("DWIDTH %d %d\n",p->boc.max_m,0);
*** gf.c.orig Fri Mar 4 15:47:42 1988
--- gf.c Thu Jul 7 11:51:52 1988
***************
*** 433,442 ****
--- 433,444 ----
while(k--)
if(getc(gfp) == EOF)
goto bad;
+ break;
case YYY:
if(get4(&k,gfp) < 0)
goto bad;
+ break;
case BOC:
if(get4(&p->boc.c,gfp) < 0)
--
+*************************************************************************+
* Dana Chee (201) 829-4488 *
* Bellcore *
* Room 2Q-250 *
* 445 South Street ARPA: dana@bellcore.com *
* Morristown, NJ 07960-1910 UUCP: {gateways}!bellcore!dana *
+*************************************************************************+