[tex-k] Re: [texhax] Metafont graphic display under X11

Karl Berry karl at freefriends.org
Sun Feb 1 22:11:01 CET 2004


    So I am asking the question: how, using mfw, do I get graphic display
    under X

Hi Yannis,

I can't speak to MacOSX, but under GNU/Linux, with DISPLAY set to :0,
mfw works for me (TeX Live 2003, that is, Metafont (Web2C 7.5.2)
2.71828), with one apparent bug: I have to use showit twice the first
time.  After the first showit, the X window is created, but is empty.
After the second showit, the dot appears.

drawdot(10,10); showit; showit;

After that, the normal:
drawdot(20,20); showit;

works for me.

    That location seems like an error message or some kind of string pool.

Those are filenames.  Perhaps the code is checking argv[0] at runtime, I
don't know.  But mf and mfw do behave as intended for me.

I'm cc-ing tex-k since Olaf and Thomas are not on texhax.

HTH,
karl



Date: Sun, 1 Feb 2004 20:50:09 +0100
From: "Yannis Haralambous" <yannis.haralambous at enst-bretagne.fr>
To: <texhax at tug.org>
Subject: [texhax] Metafont graphic display under X11

Hi everybody,

I'm trying to get Metafont's graphic display under X11 (in fact, MacOS X
XDarwin). I have mf Version 2.7182 (Web2C 7.3.8). Looking at my binaries
I get:

-rwxr-xr-x    1 yannis   admin      319312 Nov 20  2002 /usr/TeX/bin/
powerpc-apple-darwin6.2/mf
-rwxr-xr-x    1 yannis   admin      319312 Nov 20  2002 /usr/TeX/bin/
powerpc-apple-darwin6.2/mfw

mf and mfw have exactly the same size. I have compared them using a binary
file editor and found that the only difference between them is that mf,
at location 00049CD0 has the string "mfextra.c" while mfw at that
location has the string "mfnowin.c"
That location seems like an error message or some kind of string pool.

That's all difference there is. No wonder mfw does not display anything,
since it is practically the same program as mf. Shouldn't there by some
kind of call to X libraries? 

So I am asking the question: how, using mfw, do I get graphic display
under X, be it under MacOS X or under Linux?

Thanks in advance for any experience you may have on this issue.  


More information about the tex-k mailing list