X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fstem-length-estimation.ly;h=4a206696a9165ce7b0eba4ff4b91015fd59f8a8a;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=11d1bdd7b7f84bb945eb8c2177e98e04e59afa9f;hpb=f018757016404595c92e21346ae0661dafe7ea46;p=lilypond.git diff --git a/input/regression/stem-length-estimation.ly b/input/regression/stem-length-estimation.ly index 11d1bdd7b7..4a206696a9 100644 --- a/input/regression/stem-length-estimation.ly +++ b/input/regression/stem-length-estimation.ly @@ -1,19 +1,39 @@ -\version "2.13.36" +\version "2.17.6" \header { - texidoc = "Stems with overridden 'length should not confuse height estimation. -This example should fit snugly on one page. + texidoc = "Stems with overridden 'Y-extent should +not confuse height estimation. This example should fit snugly +on one page. " } +#(define (assert-single-page layout props arg) + (if (and (= (chain-assoc-get 'page:page-number props -1) + (ly:output-def-lookup layout 'first-page-number)) + (chain-assoc-get 'page:last? props -1)) + (interpret-markup layout props arg) + (ly:error "failed to fit test on single page"))) + \paper { #(set-paper-size "a6") tagline = ##f - system-system-spacing #'padding = #1.20 + indent = #0 + system-system-spacing = #'((padding . 1.2)) + oddHeaderMarkup = \markup \on-the-fly #assert-single-page \null } -\new Voice { - \voiceTwo - \override Staff.Stem #'length = #0 - \repeat unfold 144 a +\book { + \score { + \new Voice { + \voiceTwo + \override Stem.Y-extent = #'(0.0 . 0.0) + \repeat unfold 144 a4 + } + \layout { + \context { + \Score + \remove "Bar_number_engraver" + } + } + } }