I am trying to get started with METAFONT and I created my first glyph using this tutorial. Unfortunately, when I run mf beta.mf in the command line, I receive the error message: Letter beta [66]Error: Can't open display:. I have googled extensively and cannot seem to find the reason for this. Could this be because the gray and black fonts were not compiled correctly? I believe I did compile those fonts correctly and my understanding is that if this were the problem, the proofsheet would simply be full of unintelligible characters; not that the viewer would not open. Here's what my beta.mf file looks like:
u#:=4/9pt#;
define_pixels(u);
beginchar(66,13u#,16u#,5u#);"Letter beta";
x1=2u; x2=x3=3u;
bot y1=-5u; y2=8u; y3=14u;
x4=6.5u; top y4=h;
z5=(10u,12u);
z6=(7.5u,7.5u); z8=z6;
z7=(4u,7.5u);
z9=(11.5u,2u);
z0=(5u,u);
penpos1(2u,20);
penpos2(.5u,0);
penpos3(u,-45);
penpos4(.8u,-90);
penpos5(1.5u,-180);
penpos6(.4u,150);
penpos7(.4u,0);
penpos8(.4u,210);
penpos9(1.5u,-180);
penpos0(.3u,20);
pickup pencircle;
penstroke z1e..z2e..z3e..z4e..z5e..z6e..{up}z7e..z8e..z9e..{up}z0e;
labels(range 1 thru 9);
endchar;
end
I'm getting a little desperate and would greatly appreciate any help!
mf-nowin beta.mfinstead ofmf beta.mfor install XQuartz from this link – egreg Mar 09 '15 at 18:46