2 % feta-timesig.mf -- implement Time Signatures
4 % source file of the Feta (not an abbreviation of Font-En-Tja) music font
6 % (c) 1998--2002 Mats Bengtsson <matsb@s3.kth.se>,
7 % Christian Mondrup <scancm@biobase.dk>
9 fet_begingroup("timesig");
12 save left_width, right_width;
13 left_width# := 1.0 staff_space#;
14 right_width# := 0.8 staff_space#;
15 define_pixels(left_width,right_width);
19 save hair, bulb_rad, left_fatness;
22 hair# := stafflinethickness#;
23 bulb_rad# := 0.4 staff_space#;
24 define_pixels(hair, bulb_rad);
28 y1r = .45 staff_space;
29 z2 = (0, staff_space);
30 z3r = (-left_width, 0);
31 z4 = (0, -staff_space);
32 z5r = (right_width - stafflinethickness, -0.4 staff_space);
35 penpos2(stafflinethickness, 90);
36 penpos3(left_fatness * staff_space, 180);
37 penpos4(stafflinethickness, -90);
42 draw_bulb(-1, z6l, z6r, bulb_rad, .8);
44 fill z1l{dir (100)} .. z2l{left} .. z3l{down} .. z4l{right} ..
45 simple_serif(z5l, z5r, -90) ..
46 z4r{left} .. z3r{up} .. z2r{right} .. {dir (-80)}z1r -- cycle;
48 penlabels(1,2,3,4,5,6);
51 fet_beginchar ("4/4 meter", "C4/4", "fourfourmeter")
53 set_char_box(left_width# + staff_space#, right_width# + staff_space#,
54 staff_space#, staff_space#);
59 fet_beginchar ("2/2 meter", "C2/2", "allabreve")
61 set_char_box(left_width# + staff_space#, right_width# + staff_space#,
62 1.4 staff_space#, 1.4 staff_space#);
67 excentricity = (-1.25 stafflinethickness, 0);
69 draw_block((- .75 stafflinethickness, -d) + excentricity, (.75 stafflinethickness , h) + excentricity);
72 fet_endgroup("timesig");