[metapost] Anyone have notes / test files for METAFONT?

William Adams will.adams at frycomm.com
Wed Jun 28 05:56:15 CEST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20170627/e68d2a53/attachment.html>


More information about the metapost mailing list