]> git.donarmstrong.com Git - lilypond.git/blobdiff - mf/feta-ties.mf
Add '-dcrop' option to ps and svg backends
[lilypond.git] / mf / feta-ties.mf
index fc0ccb14a4a47ff795e120039de4d4b8c037f893..c2124b88e9c051e0c40d745754966d661b00203c 100644 (file)
@@ -1,12 +1,12 @@
 % Feta (not the Font-En-Tja) music font -- small ties
 % This file is part of LilyPond, the GNU music typesetter.
 %
-% Copyright (C) 2011 Bertrand Bordage <bordage.bertrand@gmail.com>
+% Copyright (C) 2011--2015 Bertrand Bordage <bordage.bertrand@gmail.com>
 %
-% LilyPond is free software: you can redistribute it and/or modify
+% 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.
+% (at your option) any later version, or under the SIL Open Font License.
 %
 % LilyPond is distributed in the hope that it will be useful,
 % but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -27,6 +27,7 @@ max_height := .4 staff_space#;
 thin := 1.2 linethickness;
 thick := 2 linethickness;
 
+
 def draw_lyric_tie (expr width_sharp) =
        save padding, angularity, width, height, depth;
 
@@ -34,11 +35,10 @@ def draw_lyric_tie (expr width_sharp) =
        angularity := 2.5;
        width# := max (min (width_sharp, max_width), min_width);
        height# := (max (width# - min_width, 0) / (max_width - min_width))
-                  [min_height, max_height];
+                    [min_height, max_height];
        depth# := padding# + height#;
 
-       set_char_box (0, 0,
-               depth#, 0);
+       set_char_box (0, 0, depth#, 0);
 
        define_pixels (width, padding);
 
@@ -51,18 +51,20 @@ def draw_lyric_tie (expr width_sharp) =
        penpos3 (thin, angularity * angle (z3 - z2) + 90);
 
        fill z2l
-               .. simple_serif (z3l, z3r, 90)
-               .. z2r
-               .. simple_serif (z1r, z1l, 90)
-               .. cycle;
+            .. simple_serif (z3l, z3r, 90)
+            .. z2r
+            .. simple_serif (z1r, z1l, 90)
+            .. cycle;
 
        penlabels (1, 2, 3);
 enddef;
 
+
 fet_beginchar ("Short lyric tie", "lyric.short");
        draw_lyric_tie (1.25 staff_space#);
 fet_endchar;
 
+
 fet_beginchar ("Default lyric tie", "lyric.default");
        draw_lyric_tie (1.75 staff_space#);
 fet_endchar;