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--2004 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.
25 save hair, bulb_rad, left_fatness;
26 save left_width, right_width;
29 width# := 1.8 staff_space# - stafflinethickness#;
30 define_pixels (width);
32 left_width# := 1.0 staff_space#;
33 right_width# := 0.8 staff_space#;
34 define_pixels (left_width, right_width);
36 hair# := stafflinethickness#;
37 bulb_rad# := 0.4 staff_space#;
38 define_pixels (hair, bulb_rad);
43 y1r = .45 staff_space;
44 y2 = -y4 = staff_space;
46 x2 = x3r + staff_space;
49 x5r = x1r + 0.3 stafflinethickness;
50 y5r = -0.37 staff_space;
53 penpos2 (stafflinethickness, 90);
54 penpos3 (left_fatness * staff_space, 180);
55 penpos4 (stafflinethickness, -90);
58 draw_bulb (-1, z1l, z1r, bulb_rad, .8);
65 ..tension 0.8.. z3l{down}
66 ..tension 0.8.. z4l{right}
67 .. simple_serif (z5l, z5r, -90)
69 .. super_curvelet (z4r, z3r, s, -1)
71 .. super_curvelet (z3r, z2r, s, 1)
76 set_char_box (0, width#, staff_space#, staff_space#);
78 penlabels (1, 2, 3, 4, 5);
82 fet_beginchar ("4/4 meter", "C44")
87 fet_beginchar ("2/2 meter", "C22")
88 save excentricity, stemlen, thick;
93 xpart excentricity = x2 - 1.25 stafflinethickness;
94 ypart excentricity = 0;
96 stemlen = 1.4 staff_space;
97 thick = stafflinethickness / 2 + 0.025 staff_space;
99 draw_block ((-thick, -stemlen) + excentricity,
100 (thick, stemlen) + excentricity);
103 fet_endgroup ("timesig");