Xref: utzoo comp.windows.x:5436 comp.sources.wanted:5203 Path: utzoo!attcan!uunet!wyse!vsi1!ames!mailrus!ukma!gatech!rutgers!bellcore!dana From: dana@dino.bellcore.com (Dana A. Chee) Newsgroups: comp.windows.x,comp.sources.wanted Subject: Re: Metafont Fonts for X11? Message-ID: Date: 4 Oct 88 11:58:45 GMT References: <156@proteus.UUCP> Sender: news@bellcore.bellcore.com Organization: Bellcore, Morristown, NJ USA Lines: 63 In-reply-to: gardner@athsys.uucp's message of 4 Oct 88 00:09:01 GMT In article <156@proteus.UUCP> gardner@athsys.uucp (Gardner Cohen) writes: I assume tools to produce X11 bdf fonts from Metafont gf files exist, since I've seen cmr fonts on our Sun X systems. Can anyone tell me where to find such tools? The program you are looking for is called gfto and came with the X11R2 contributed software. Below are patches to make it work a bit better. Thanks in advance. You're welcome. Gardner Cohen sun!athsys!gardner ==================== 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 * +*************************************************************************+