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 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.
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;
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 "
+ );
%
-% 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
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;
y3l = y1 + height/2;
x3 = x1 + width;
y1 =0;
- x3 = - width / 2;
+ x1 = - b;
pair pendir;
pendir = unitvector(x3 - x1, y3l/6 - y1);