--- /dev/null
+%
+% feta-beum.mf -- implement runtime MF beams
+%
+% source file of LilyPond's pretty-but-neat music font
+%
+% (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
+%
+mode_setup;
+
+def drawbeam(expr widths,slope,thicks) =
+ beginchar(0,0,0,0) "Embedded mf";
+ width#:=widths*1pt#;
+ thick#:=thicks*1pt#;
+ height#:=slope*width#;
+ % do separately, to identify "value too large"
+ define_pixels(height);
+ define_pixels(thick);
+ define_pixels(width);
+ fill (0, - thick/2)--(width,height - thick/2)--(width,height+thick/2)--(0,thick/2)
+ -- cycle;
+ endchar;
+ enddef;
+
1 setlinecap
/draw_beam
{
- /beam_thick exch def
+ 2 div /beam_thick exch def
/beam_slope exch def
/beam_wd exch def
beam_slope beam_wd mul /beam_ht exch def
- 0 0 moveto
+ 0 beam_thick neg moveto
beam_wd beam_ht rlineto
- 0 beam_thick rlineto
- 0 beam_thick lineto
+ 0 beam_thick 2 mul rlineto
+ 0 beam_thick lineto
closepath fill
} bind def
% PS helper: convert (0.2pt) to the token 0.2
slur_indent slur_ht
slur_b slur_indent sub slur_ht
slur_b 0
- % pstack
rcurveto
%
slur_indent neg slur_ht slur_dir slur_thick mul sub