]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix 1472: ensure space for KeySignature
authorKeith OHara <k-ohara5a5a@oco.net>
Mon, 24 Jan 2011 05:18:13 +0000 (21:18 -0800)
committerGraham Percival <graham@percival-music.ca>
Tue, 1 Feb 2011 21:22:15 +0000 (21:22 +0000)
Add key-signature-interface::print to pure-print-callbacks
so the extent of a KeySignature is known during note spacing.

input/regression/key-signature-space.ly [new file with mode: 0644]
scm/define-grobs.scm

diff --git a/input/regression/key-signature-space.ly b/input/regression/key-signature-space.ly
new file mode 100644 (file)
index 0000000..ce0d1c3
--- /dev/null
@@ -0,0 +1,19 @@
+\header {
+
+  texidoc = "Key signatures get the required amount of horizontal space."
+
+}
+\version "2.13.47"
+<<
+  \new Staff {
+    \voiceOne
+    \key f\minor
+    f'4 f' f' f'
+    \key b\major
+    e''8 e'' e''4 e''2
+  }
+  \new Staff {
+    R1 \bar "||"
+    R1
+  }
+>>
index 5b234627439fb10a2f7ef3940712d059ebeb8380..bb5724f0957eddadca305e12915e7480422e1450 100644 (file)
    ly:note-head::print
    ly:dots::print
    ly:clef::print
+   ly:key-signature-interface::print
    ly:percent-repeat-item-interface::beat-slash
    ly:text-interface::print
    ly:script-interface::print