[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PecentRepeat with small 'slope causes collisions
From: |
Thomas Morley |
Subject: |
PecentRepeat with small 'slope causes collisions |
Date: |
Sun, 7 May 2017 15:26:02 +0200 |
Hi,
the following code gives bad output (collisions) for PecentRepeat with
small 'slope
\repeat percent 2 { c'4 d' e' f' \override PercentRepeat #'slope = #0.2 }
This happens in all tested versions from 2.19.60 back to 2.12.3
My first thought was the stencil extents are not calculated correctly
though the code below seems to proof this wrong:
boxPercentRepeat =
\once \override PercentRepeat #'after-line-breaking =
#(lambda (grob)
(ly:grob-set-property! grob 'stencil
(stencil-with-color
(box-stencil
(ly:grob-property grob 'stencil)
0.2 0.5)
red)
))
slopePercentRepeat =
\once \override PercentRepeat #'slope = #0.2
\repeat percent 2 {
c'4 d' e' f'
\boxPercentRepeat
\slopePercentRepeat
}
An image of this is attached.
Cheers,
Harm
atest-56-percent-repeat-collision.png
Description: PNG image
- PecentRepeat with small 'slope causes collisions,
Thomas Morley <=