Keywords: Metafont-example-output.svg en To create the image put the following code in <code>mfont mf</code> from w Metafont's Example section <syntaxhighlight lang text > mode_setup; Define a beanlike shape for the character B beginchar B 11pt 11pt 0 ; Setup coordinates as an equation system y1 y2 y3 0; y4 y5 y6 h; x1 x4 0; x2 x5 w; x3 x6 2 w; Define pen pickup pencircle xscaled 0 2w yscaled 0 04w rotated 45; Draw the character curve draw z1 z3 z6 z2-z6 z5 z4-z2 z4 cycle; endchar; end </syntaxhighlight> and the following code in <code>main tex</code> <syntaxhighlight lang latex > \documentclass article \newfont \obrfont mfont \begin document \pagestyle empty \begin center \obrfont B \end center \end document </syntaxhighlight> Put those two files in the same directory compile with these commands <pre> latex main dvisvgm -n1 -e -Z0 1 main </pre> The end result is the file <code>main svg</code> 2015-07-17 own ngoclong19 other versions cc-zero Uploaded with UploadWizard Uncategorized 2015 July 17 |