1 % feta-haak.mf -- implement bracket tips -*-Fundamental-*-
3 % part of LilyPond's pretty-but-neat music font
5 % source file of the Feta (not the Font-En-Tja) music font
7 % (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 fet_begingroup ("brackettips");
11 def draw_bracket (expr thick_sharp, width_sharp, updown) =
13 save p, thin, thick, flattening, width, hair, flare;
19 flare# = flattening * width#;
22 define_pixels (thick, width, flare);
24 set_char_box (0, width#,
27 set_char_box (0, width#,
31 thin = 2 linethickness;
32 hair = 1.25 linethickness;
34 pickup pencircle scaled thin;
54 ..tension 1.2.. z5{curl 0};
55 tipdir := direction 1 of p;
57 penpos5 (hair, angle tipdir);
58 penpos6 (hair, 90 + angle tipdir);
62 pickup pencircle scaled 1;
71 ..tension 1.1.. z7{left}
74 & cycle) yscaled updown;
77 penlabels (1, 2, 3, 4, 5, 6, 7, 8);
83 fet_beginchar ("bracket tip up", "up");
84 draw_bracket (0.45 staff_space#, 1.9 staff_space#, 1);
88 fet_beginchar ("bracket tip down", "down");
89 draw_bracket (0.45 staff_space#, 1.9 staff_space#, -1);
92 fet_endgroup ("brackettips");