[comp.text] MetaFont and X Windows

samperi@marob.masa.com (Dominick Samperi) (09/25/89)

I was delighted to discover recently that when I run MetaFont on
my Sun 3, while also running X, the showit command causes a separate
xterm window to pop up, where the newly created font is displayed.
Now I installed X, and I also installed TeX and MetaFont, yet I did
not do anything explicitly to cause this to happen. Could somebody
comment on how MetaFont talks to X? Where can I find documentation
on the relationship between TeX/MetaFont and X? Thanks!
-- 
Dominick Samperi -- Citicorp
samperi@Citicorp.COM
uunet!ccorp!samperi

ken@cs.rochester.edu (Ken Yap) (09/26/89)

|I was delighted to discover recently that when I run MetaFont on
|my Sun 3, while also running X, the showit command causes a separate
|xterm window to pop up, where the newly created font is displayed.
|Now I installed X, and I also installed TeX and MetaFont, yet I did
|not do anything explicitly to cause this to happen. Could somebody
|comment on how MetaFont talks to X? Where can I find documentation
|on the relationship between TeX/MetaFont and X? Thanks!

Yup, some kindly gremlins snuck it into the code when you went home
after unloading the tape. :-)

No, seriously, look at site.h. There is a #define for X10 or X11
support.

Actually Unix MF has had a history of windowing support. The Pascal
version had hooks to SunView. So it's not surprising X support has been
added.  It's probably as simple as a procedure hook to the MF command
\showit.