English: To create the image, put the following code in
mfont.mf
(from
w:Metafont's Example section)
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
and the following code in main.tex
\documentclass{article}
\newfont{\obrfont}{mfont}
\begin{document}
\pagestyle{empty}
\begin{center}
{\obrfont B}
\end{center}
\end{document}
Put those two files in the same directory, compile with these commands:
$ latex main
$ dvisvgm -n1 -e -Z0.1 main
The end result is the file
main.svg