Path: utzoo!attcan!uunet!tank!ncar!ames!pasteur!agate!maypo!vojta From: vojta@maypo.berkeley.edu (paul vojta) Newsgroups: comp.windows.x Subject: Re: Reading PK fonts in the server Message-ID: <19613@agate.BERKELEY.EDU> Date: 28 Jan 89 03:25:08 GMT References: Sender: usenet@agate.BERKELEY.EDU Reply-To: ucbvax!math!vojta (paul vojta) Distribution: comp Organization: Math Dept., UC Berkeley Lines: 38 In article grunwald@flute.cs.uiuc.edu (Dirk Grunwald) writes: > >Has anyone looked into reading ``pk'' fonts in the X server? > >The advantages of this are numerous: > ... > + It makes a dvi previewer much more affordable (Ok, so it's > not a good reason). > ... > >Dirk Grunwald >Univ. of Illinois >grunwald@m.cs.uiuc.edu As long as we are on the subject of wish lists for additions to the server, why not allow the client to send a font to the server 'on the fly'? This would at least help in the writing of dvi previewers. (The previewing program has to read the pk file anyway to get the character widths, etc., so it might as well send the characters down to the server rather than have both the client and server read the same file. Also, problems tend to crop up if the client and server are on different machines with slightly different TeX font libraries online.) My other wish, if the above cannot be granted, is having a PutImage which only acts like XDrawString instead of XDrawImageString. What I mean is, quoting from the man page for XDrawString, "The drawable is modified only where the font character has a bit set to 1." Again, this would be useful for dvi previewers, so that overstrike characters can be handled correctly. (Sure, I could use GXand or GXor, but maybe not on a color display.) In case you haven't guessed yet, I've been hacking around with a dvi previewer, too; in this case it's pub/vxdvi.shar.Z on charon.mit.edu (also available in a newer version from pub/tmp/#xdvi.shar.Z on ucbvax.berkeley.edu). Paul Vojta, vojta@math.berkeley.edu