Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Low skyline

New issue 1351 by v.villenave: Y-extent of a modified LyricExtender stencil is not accounted for in the skyline
http://code.google.com/p/lilypond/issues/detail?id=1351

% Reported by Werner, based on http://lsr.dsi.unimi.it/LSR/Item?id=643

\version "2.13.36"
#(ly:set-option 'debug-skylines #t)
\layout {
  \context {
    \Lyrics
    \consists "Tweak_engraver"
  }
}

#(define (extend text)
   (let ((extender (make-music 'ExtenderEvent)))
     (set! (ly:music-property extender 'tweaks)
           (acons 'stencil (lambda (grob)
                             (ly:stencil-combine-at-edge
                              (ly:lyric-extender::print grob)
                              X RIGHT
                              (grob-interpret-markup grob text)
                              0 0))
                  (ly:music-property extender 'tweaks)))
     extender))

extendComma = #(extend ",")

\relative c' {
  c4( d e f)
}
\addlyrics {
  AAA \extendComma
}

% As you can see, whatever goes below the extender line won't be
% taken into account when calculating the skyline, and therefore may
% be cropped, for instance, if used in a lilypond-book context.

Attachments:
        ex.png  3.3 KB


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to