]> git.donarmstrong.com Git - lilypond.git/blob - mf/feta-braces-generic.mf
Add '-dcrop' option to ps and svg backends
[lilypond.git] / mf / feta-braces-generic.mf
1 % This file is part of LilyPond, the GNU music typesetter.
2 %
3 % Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 %                Jan Nieuwenhuizen <janneke@gnu.org>
5 %
6 % The LilyPond font 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, or under the SIL Open Font License.
10
11
12 % We have to reduce the pixel-per-point value to
13 % support large brace glyphs in case we are using MetaPost
14 % (which by default sets `hppp' to 49.80244, regardless of
15 % the used `mag' value)
16
17 if known miterlimit:
18         bpppix_ := 0.2;         % ten times larger than original
19
20         numeric mm, pt, dd, bp, cm, pc, cc, in;
21
22         mm * bpppix_ = 2.83464;
23         pt * bpppix_ = 0.99626;
24         dd * bpppix_ = 1.06601;
25         bp * bpppix_ = 1;
26         cm * bpppix_ = 28.34645;
27         pc * bpppix_ = 11.95517;
28         cc * bpppix_ = 12.79213;
29         in * bpppix_ = 72;
30
31         hppp := pt;
32         vppp := pt;
33 fi;
34
35 design_size := 20;   %% arbitrary
36
37 input common-modules-and-initialization;
38
39 %
40 % We must let the design increase for each font to make sure that mftrace
41 % doesn't jack up the resolution too highly for the longer braces.
42 %
43
44 fet_beginfont ("feta-braces-" & char (97 + font_count),
45                (font_count + 1) * 20, "fetaBraces");
46         input feta-braces;
47 fet_endfont ("feta-braces");