Re: Anyone have notes / test files for METAFONT?

William Adams <[email protected]>
Newsgroups gmane.comp.tex.metapost
Message-ID <CAENrYJA-zoRocOPy=5+nRZmWS0bAcvgGVQcfbJbiSe7pkVRnXQ@mail.gmail.com>
Thanks for the resources!


Added the following to my tex.stackexchange query:

Okay, given a `METAFONT` eight.mf:
    mode_setup;
    u# := 2mm#;
    define_pixels(u);

    beginchar("A", 8u#, 9u#, 5u#);
      z1 = ( 0u,  0u);
      z2 = ( 8u,  0u);
      z3 = ( 1u,  8u);
      z4 = ( 7u,  8u);
      pickup pencircle scaled 1u#;
      draw z4 ..  z1 .. z2 ..  z3 .. cycle;
      pickup pencircle scaled 3u#;
      drawdot z1;
      drawdot z2;
      drawdot z3;
      drawdot z4;
    endchar;

    \end
we process it using
    mf eight.mf
and get the file eight.2602gf
we then run
    gftodvi eight.2602gf
which gets us eight.dvi, but when we open that we see:
[![eight.dvi screengrab][1]][1]

  [1]: https://i.stack.imgur.com/JrRQI.png
Ideally I'd like a solution which makes use of lualatex and PDF --- I'd
like to be able to open up a metafont file in a text editor, tweak / edit
it, then compile the project and instantly see it overlaid on a pixel image
(and possibly surprinted by a vector PDF.

I think it's something basic and simple which I'm missing or failing to
communicate.

William

--
http://tug.org/metapost/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.