]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/system-start-delimiter.cc (staff_brace): don't remove brace
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 23 Aug 2005 10:28:03 +0000 (10:28 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 23 Aug 2005 10:28:03 +0000 (10:28 +0000)
extent. This fixes braces falling out of the EPS bbox.

* mf/feta-beugel.mf (braces_per_font): make brace glyph align
exactly to bbox.

ChangeLog
lily/system-start-delimiter.cc
mf/feta-beugel.mf

index 0ab30acddd51a78ce13b0b3703cd3e0b74bbe2c0..de6f42650e13a916d48a56e7a223e49eed722dc2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+       
+2005-08-23  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/system-start-delimiter.cc (staff_brace): don't remove brace
+       extent. This fixes braces falling out of the EPS bbox.
+
+       * mf/feta-beugel.mf (braces_per_font): make brace glyph align
+       exactly to bbox.
+
 2005-08-23  Graham Percival  <gpermus@gmail.com>
 
        * {various} : change #up->#UP and #down->#DOWN.
index fbf24c662eeb2d2451d45c4fb18ba120cfd38a26..24be5bb59581554249385243571755f367a61724 100644 (file)
@@ -164,9 +164,9 @@ System_start_delimiter::staff_brace (Grob *me, Real y)
 
   int lo = 0;
   int hi = max (fm->count () - 1, 2);
-  Box b;
 
   /* do a binary search for each Y, not very efficient, but passable?  */
+  Box b;
   do
     {
       int cmp = (lo + hi) / 2;
@@ -179,14 +179,17 @@ System_start_delimiter::staff_brace (Grob *me, Real y)
   while (hi - lo > 1);
 
   Stencil stil (fm->find_by_name ("brace" + to_string (lo)));
-  b = stil.extent_box ();
-  b[X_AXIS] = Interval (0, 0);
+  stil.translate_axis (-b[X_AXIS].length()/2, X_AXIS);
 
-  return Stencil (b, stil.expr ());
+  return stil;
 }
 
 ADD_INTERFACE (System_start_delimiter, "system-start-delimiter-interface",
               "The brace, bracket or bar in front of the system. "
               "It is implemented as a spanner.",
-              "collapse-height thickness "
-              "glyph");
+
+              /* properties */
+              "collapse-height "
+              "glyph "
+              "thickness "
+              );
index f87c7edbf408d1583156ff7c8d16058ea6a1b92a..8196f3d94a49316f5a36d9b8006eddfbde2ded93 100644 (file)
@@ -1,5 +1,5 @@
 % 
-% feta-beugel.mf -- [Staff] braces
+% feta-beugel.mf -- Staff braces
 % 
 % source file of the Feta (not an acronym for Font-En-Tja)
 % pretty-but-neat music font
@@ -41,7 +41,7 @@ def draw_brace (expr height_sharp, width_sharp, slt_sharp, brace_number) =
 fet_beginchar ("brace number " & (decimal (brace_number)),
                "brace" & decimal(brace_number))
 
-       set_char_box (0, width#, height#/2, height#/2);
+       set_char_box (width#, 0, height#/2, height#/2);
          
        define_pixels (height, width, slt);
        thin = 2 slt;
@@ -51,7 +51,7 @@ fet_beginchar ("brace number " & (decimal (brace_number)),
        y3l = y1 + height/2;
        x3 = x1 + width;
        y1 =0;
-       x3 = - width / 2;
+       x1 = - b;
 
        pair pendir;
        pendir = unitvector(x3 - x1, y3l/6 - y1);