]> git.donarmstrong.com Git - lilypond.git/blobdiff - mf/feta-beugel.mf
* buildscripts/lilypond-words.py: search words also from
[lilypond.git] / mf / feta-beugel.mf
index 0f32d9d40ec7adc560876f6ff1c7de8ebc9d523f..3d6f6b037023f652a207ca6bd53821b0601d0adf 100644 (file)
@@ -8,8 +8,6 @@ staffsize#  := 20 pt#;  %% arbitrary.
 
 input feta-params;
 
-font_coding_scheme "feta braces";
-
 
 def abc_encode_int (expr i) =
        if i > 0:
@@ -19,11 +17,11 @@ def abc_encode_int (expr i) =
        fi
 enddef ;
 
-% we set the designsize arbitrarily at 10
-
-design_size := 10;
-
-fet_beginfont("feta-braces-" &char(97 + font_count), design_size);
+% 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)* 15,
+               "fetaBraces");
 
 mode_setup;
 
@@ -92,7 +90,12 @@ for i := 0 step 1 until font_count:
     % message "l: "&decimal l;
     % note: define_pixels (x) multiplies x by hppp,
     % must never get bigger than infinity
-    y := min (y + increment, infinity/hppp - 1);
+    y := y + increment;
+
+    if y > infinity/hppp:
+      message "Resolution and/or magnification is too high";
+      error please report: <bug-lilypond@gnu.org>;
+    fi
 
     % x should be about one staff space, taking brace to have
     % default height of 3 staffs, this yields height / 3 / 4 = 12