2 % feta-sleur.mf -- implement runtime MF slurs
4 % source file of LilyPond's pretty-but-neat music font
6 % (c) 1997--2000 Jan Nieuwenhuizen <janneke@gnu.org>
7 % & Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 % see Documentation/fonts.tex
14 % staff_space#:=staffsize#/4;
15 % stafflinethickness#:=0.1staff_space#;
24 sleur_pen#:=stafflinethickness#;
25 slurheightlimit#:=staffsize#/2;
26 slurthick#:=1.8stafflinethickness#;
28 define_pixels(staffsize,staff_space,stafflinethickness);
29 define_pixels(sleur_pen,slurheightlimit,slurthick);
31 sluralpha:=2slurheightlimit#/pi;
33 slurbeta:=pi*slurratio/2slurheightlimit#;
35 def draw_slur(expr dxs,dys,hs,d) =
37 save b, dx, dy, h, indent;
43 indent#:=sluralpha*atan(slurbeta*b#);
44 define_pixels(b,h,indent);
50 z5=z4-(0,d*slurthick);
51 z6=z3-(0,d*slurthick);
53 boogje=z1..controls z3 and z4..z2..controls z5 and z6..cycle;
54 boogje:=boogje rotated angle(dxs,dys);
55 pickup pencircle scaled sleur_pen;