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");
13 % originally by Mats B. nuked by Han-Wen, inspired by
14 % Baerenreiter BA320 (Bach Cello Suites, Suite III)
18 % * the inside curve of the C is rather straight.
19 % * the outside curve of the C is rather round.
20 % * right tips of the C point slightly outward
21 % * lower tip protudes to the right very slightly.
26 save hair, bulb_rad, left_fatness;
27 save left_width, right_width;
30 width# := 1.8 staff_space#- stafflinethickness#;
31 define_pixels (width);
33 left_width# := 1.0 staff_space#;
34 right_width# := 0.8 staff_space#;
35 define_pixels(left_width,right_width);
37 hair# := stafflinethickness#;
38 bulb_rad# := 0.4 staff_space#;
39 define_pixels(hair, bulb_rad);
44 y1r = .45 staff_space;
45 y2 = -y4 = staff_space;
47 x2 = x3r + staff_space;
50 x5r = x1r + 0.3 stafflinethickness;
51 y5r = -0.37 staff_space;
55 penpos2(stafflinethickness, 90);
56 penpos3(left_fatness * staff_space, 180);
57 penpos4(stafflinethickness, -90);
61 draw_bulb(-1, z6l, z6r, bulb_rad, .8);
68 .. z3l{down} .. tension 0.8 .. z4l{right} ..
69 simple_serif(z5l, z5r, -90) ..
71 .. super_curvelet (z4r,z3r,s,-1)
73 .. super_curvelet (z3r,z2r,s, 1)
74 .. z2r{right} .. {dir (-80)}z1r -- cycle;
76 set_char_box(0, width#, staff_space#, staff_space#);
78 penlabels(1,2,3,4,5,6);
81 fet_beginchar ("4/4 meter", "C4/4", "fourfourmeter")
85 fet_beginchar ("2/2 meter", "C2/2", "allabreve")
91 xpart excentricity = x2 -1.25 stafflinethickness;
92 ypart excentricity = 0;
95 stemlen = 1.4 staff_space;
97 draw_block((- .75 stafflinethickness, - stemlen) + excentricity, (.75 stafflinethickness , stemlen) + excentricity);
100 fet_endgroup("timesig");