From a2cbe0e4a38132117984c3e9256b1c78acdcae78 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sun, 4 May 2008 19:26:09 +0200 Subject: [PATCH] Improve defaults for InstrumentSwitch -) Don't use a staff-padding of 2 (too far from the staff!), but rather 0.5 -) Left-align cue instrument names on the note they apply to (common practice is to left-align at the beginning of the measure, or sometimes even further to the left depending on the vertical extents of the cue voice). Center-aligned instrument names lead to all kinds of broken spacing, i.e. the first note will only start at half the width of the cue instrument name, even if that means a huge horizontal empty space!. -) Add outside-staff-priority, so that collisions are automatically handled --- scm/define-grobs.scm | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scm/define-grobs.scm b/scm/define-grobs.scm index d81c37d..fc50d99 100644 --- a/scm/define-grobs.scm +++ b/scm/define-grobs.scm @@ -828,14 +828,15 @@ (InstrumentSwitch . ( - (padding . 0.3) + (padding . 0.5) (stencil . ,ly:text-interface::print) (Y-offset . ,ly:side-position-interface::y-aligned-side) (X-offset . ,ly:self-alignment-interface::x-aligned-on-self) - (staff-padding . 2) + (staff-padding . 0.5) (direction . ,UP) (side-axis . ,Y) - (self-alignment-X . ,CENTER) + (self-alignment-X . ,LEFT) + (outside-staff-priority . 500) (meta . ((class . Item) (interfaces . (side-position-interface font-interface)))))) -- 1.5.4.3