]> git.donarmstrong.com Git - lilypond.git/commitdiff
move brace-drawing procedure to separate file (and rename files)
authorJanek Warchoł <lemniskata.bernoullego@gmail.com>
Fri, 6 Dec 2013 17:22:43 +0000 (18:22 +0100)
committerBenkő Pál <benko.pal@gmail.com>
Thu, 19 Dec 2013 16:34:13 +0000 (17:34 +0100)
mf/feta-braces-a.mf
mf/feta-braces-b.mf
mf/feta-braces-c.mf
mf/feta-braces-d.mf
mf/feta-braces-e.mf
mf/feta-braces-f.mf
mf/feta-braces-g.mf
mf/feta-braces-generic.mf [new file with mode: 0644]
mf/feta-braces-h.mf
mf/feta-braces-i.mf
mf/feta-braces.mf

index 1210262421a478024ef6ba167df54407d850cce9..9d96722731b8415fb9b7953475f15876806d6166 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 0;
-input feta-braces;
+input feta-braces-generic;
 end.
index df91510af7355a3cbe1fa724bf372a4f56bf7bfd..9e67037924a5ab3d5c7d9206caf6b54ba6175976 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 1;
-input feta-braces;
+input feta-braces-generic;
 end.
index 87fc66047dfccba037f8b27548b7ed3147b39386..60063778fc58ffa5d06ee581607d215246963222 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 2;
-input feta-braces;
+input feta-braces-generic;
 end.
index ffad571c0c3c943635a1d70286c4335a829d68d7..822f46cdc57e5d630704f2fc5a18db97ccc8c893 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 3;
-input feta-braces;
+input feta-braces-generic;
 end.
index a0b130bdada639107e7bd2cd250aa5dbfb0a8448..16502fd23756bc0c5b6947751a89e1ff31dc238d 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 4;
-input feta-braces;
+input feta-braces-generic;
 end.
index ad31d2bcc8a2d392772f0d550271c72c4c4bccc3..b8151f925288dfb393385214000da1b482667479 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 5;
-input feta-braces;
+input feta-braces-generic;
 end.
index 545ca5a855b5ce4e97f5b1bb29249ea0347b0e3d..8fd1800b8d5c3a4e82574ffdfd1168e61cfca4ea 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 6;
-input feta-braces;
+input feta-braces-generic;
 end.
diff --git a/mf/feta-braces-generic.mf b/mf/feta-braces-generic.mf
new file mode 100644 (file)
index 0000000..749eb89
--- /dev/null
@@ -0,0 +1,51 @@
+% This file is part of LilyPond, the GNU music typesetter.
+%
+% Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
+%                Jan Nieuwenhuizen <janneke@gnu.org>
+%
+% The LilyPond font is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version, or under the SIL Open Font License.
+
+
+% We have to reduce the pixel-per-point value to
+% support large brace glyphs in case we are using MetaPost
+% (which by default sets `hppp' to 49.80244, regardless of
+% the used `mag' value)
+
+if known miterlimit:
+       bpppix_ := 0.2;         % ten times larger than original
+
+       numeric mm, pt, dd, bp, cm, pc, cc, in;
+
+       mm * bpppix_ = 2.83464;
+       pt * bpppix_ = 0.99626;
+       dd * bpppix_ = 1.06601;
+       bp * bpppix_ = 1;
+       cm * bpppix_ = 28.34645;
+       pc * bpppix_ = 11.95517;
+       cc * bpppix_ = 12.79213;
+       in * bpppix_ = 72;
+
+       hppp := pt;
+       vppp := pt;
+fi;
+
+
+input feta-autometric;
+input feta-macros;
+
+staffsize# := 20 pt#;   %% arbitrary
+
+input feta-params;
+
+%
+% We must let the design increase for each font to make sure that mftrace
+% doesn't jack up the resolution too highly for the longer braces.
+%
+
+fet_beginfont ("feta-braces-" & char (97 + font_count),
+              (font_count + 1) * 20, "fetaBraces");
+       input feta-braces;
+fet_endfont ("feta-braces");
index 646e153106f1a8044f312a375b469237bee27c6f..cfcdb2b25dae229bd2635690128bd1ac40b66c00 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 7;
-input feta-braces;
+input feta-braces-generic;
 end.
index 0f3fcd35673df1281a2ddc7b0f5159d28a30bc26..247d38d179a8c36efa85bcae55189d98332de817 100644 (file)
@@ -18,5 +18,5 @@
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 font_count := 8;
-input feta-braces;
+input feta-braces-generic;
 end.
index c948f345fd6e525fa0d221606b96a55f86dc99e9..9a3d62ca7fe0ab9234ed0e6270ed4f697bc63577 100644 (file)
 % You should have received a copy of the GNU General Public License
 % along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
-
-% We have to reduce the pixel-per-point value to
-% support large brace glyphs in case we are using MetaPost
-% (which by default sets `hppp' to 49.80244, regardless of
-% the used `mag' value)
-
-if known miterlimit:
-       bpppix_ := 0.2;         % ten times larger than original
-
-       numeric mm, pt, dd, bp, cm, pc, cc, in;
-
-       mm * bpppix_ = 2.83464;
-       pt * bpppix_ = 0.99626;
-       dd * bpppix_ = 1.06601;
-       bp * bpppix_ = 1;
-       cm * bpppix_ = 28.34645;
-       pc * bpppix_ = 11.95517;
-       cc * bpppix_ = 12.79213;
-       in * bpppix_ = 72;
-
-       hppp := pt;
-       vppp := pt;
-fi;
-
-
-input feta-autometric;
-input feta-macros;
-
-staffsize# := 20 pt#;   %% arbitrary
-
-input feta-params;
-
 %
 % We must let the design increase for each font to make sure that mftrace
 % doesn't jack up the resolution too highly for the longer braces.
 %
 
-fet_beginfont ("feta-braces-" & char (97 + font_count),
-              (font_count + 1) * 20, "fetaBraces");
-
 mode_setup;
 
 
@@ -160,5 +125,3 @@ for i := 0 step 1 until font_count:
                number := number + 1;
        endfor;
 endfor;
-
-fet_endfont ("feta-braces");