1 % Feta (not the Font-En-Tja) music font -- bracket tips -*-Fundamental-*-
2 % This file is part of LilyPond, the GNU music typesetter.
4 % Copyright (C) 2005--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 % LilyPond is free software: you can redistribute it and/or modify
7 % it under the terms of the GNU General Public License as published by
8 % the Free Software Foundation, either version 3 of the License, or
9 % (at your option) any later version.
11 % LilyPond is distributed in the hope that it will be useful,
12 % but WITHOUT ANY WARRANTY; without even the implied warranty of
13 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 % GNU General Public License for more details.
16 % You should have received a copy of the GNU General Public License
17 % along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
19 fet_begingroup ("brackettips");
21 def draw_bracket (expr thick_sharp, width_sharp, updown) =
23 save p, thin, thick, flattening, width, hair, flare;
29 flare# = flattening * width#;
32 define_pixels (thick, width, flare);
34 set_char_box (0, width#,
37 set_char_box (0, width#,
41 thin = 2 linethickness;
42 hair = 1.25 linethickness;
44 pickup pencircle scaled thin;
64 ..tension 1.2.. z5{curl 0};
65 tipdir := direction 1 of p;
67 penpos5 (hair, angle tipdir);
68 penpos6 (hair, 90 + angle tipdir);
72 pickup pencircle scaled 1;
81 ..tension 1.1.. z7{left}
84 & cycle) yscaled updown;
87 penlabels (1, 2, 3, 4, 5, 6, 7, 8);
93 fet_beginchar ("bracket tip up", "up");
94 draw_bracket (0.45 staff_space#, 1.9 staff_space#, 1);
98 fet_beginchar ("bracket tip down", "down");
99 draw_bracket (0.45 staff_space#, 1.9 staff_space#, -1);
102 fet_endgroup ("brackettips");