]> git.donarmstrong.com Git - lilypond.git/blob - mf/parmesan-dots.mf
Formatting.
[lilypond.git] / mf / parmesan-dots.mf
1 % Feta (not the Font-En-Tja) music font -- dot vaticana
2 % This file is part of LilyPond, the GNU music typesetter.
3 %
4 % Copyright (C) 2006--2012 Juergen Reuter <reuter@ipd.uka.de>
5
6 %
7 % LilyPond is free software: you can redistribute it and/or modify
8 % it under the terms of the GNU General Public License as published by
9 % the Free Software Foundation, either version 3 of the License, or
10 % (at your option) any later version.
11 %
12 % LilyPond is distributed in the hope that it will be useful,
13 % but WITHOUT ANY WARRANTY; without even the implied warranty of
14 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 % GNU General Public License for more details.
16 %
17 % You should have received a copy of the GNU General Public License
18 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
19
20 fet_begingroup ("dots");
21
22 save dot_diam;
23
24 3 dot_diam# = staff_space# - stafflinethickness#;
25 define_whole_blacker_pixels (dot_diam);
26
27 fet_beginchar ("duration dot", "dotvaticana");
28         pickup pencircle scaled dot_diam;
29
30         lft x0 = 0;
31         top y0 = vround (.5 dot_diam);
32
33         drawdot z0;
34
35         set_char_box (0, dot_diam#, .5 dot_diam#, .5 dot_diam#);
36 fet_endchar;
37
38
39 %%%%%%%%%%%%%
40 %%%
41 %%% Code for Kievan Music Notation
42 %%%
43 %%%%%%%%%%%%%
44
45
46 save kievan_dot_diam;
47 kievan_dot_diam# := staff_space# - stafflinethickness#;
48 define_whole_pixels (kievan_dot_diam);
49
50
51 fet_beginchar ("Kievan augmentation dot", "dotkievan");
52         % parameters for superellipse are right, top, left, bottom
53         fill superellipse ((kievan_dot_diam, 0),
54                            (kievan_dot_diam / 2, kievan_dot_diam / 2),
55                            (0, 0),
56                            (kievan_dot_diam / 2, -kievan_dot_diam / 2),
57                            0.51);
58
59         set_char_box (0, kievan_dot_diam#,
60                       0.5 kievan_dot_diam#, 0.5 kievan_dot_diam#);
61 fet_endchar;
62
63 fet_endgroup ("dots");