bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: whiteout bug


From: Phil Holmes
Subject: Re: whiteout bug
Date: Sun, 28 Jul 2013 16:28:44 +0100

"Karol Majewski" <address@hidden> wrote in message news:address@hidden
Hi,

Take look at this:

%%%%%%%%%%

\version "2.17.22"

\layout {
 \context {
   \Score
   \override TextScript.whiteout = ##t
 }
}

right = \relative c' {
<a' c d>4 <a c d> <a c d> <a c d> _"whoooo"
<a c d>8 <a c d>4 <a c d>8 <a c d>2
}

left = \relative c {
<a' c d>4 <a c d> <a c d> <a c d>
<a c d>8 <a c d>4 <a c d>8 <a c d>2
}

\score {
 <<
   \new PianoStaff
     <<
     \new Staff = "right" \right
     \new Staff = "left" \left
     >>
 >>
}

%%%%%%%%%%%%%%%

First note in the second bar is partially overlayed by whie box, which is
not what we want, do we?

I wouldn't actually call it a bug. It happens because lily now places objects around text based on the actual shape of the text itself. However, the whiteout is purely a box, and so doesn't follow the same shape. Simple fix:

\layout {
\context {
\Score
\override TextScript.whiteout = ##t
\override TextScript #'vertical-skylines = #'()
}
}



--
Phil Holmes
Bug Squad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]