X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fwhiteout.ly;h=543d94f369da04536a8fc13c3a88a0466871fac4;hb=7cfd1d52c129b0e1e24e6136eef42ae9804c2919;hp=5e3b8b0ef27711c7a69cef873fe8c00f045908c9;hpb=730c54a571ab3b6c30e02be5f93c876abee0f9a7;p=lilypond.git diff --git a/input/regression/whiteout.ly b/input/regression/whiteout.ly index 5e3b8b0ef2..543d94f369 100644 --- a/input/regression/whiteout.ly +++ b/input/regression/whiteout.ly @@ -1,18 +1,39 @@ \header { - texidoc = "The whiteout command underlays a white box under a -markup. The whitening effect only is only guaranteed for staff lines, -since staff lines are in a different layer. " + texidoc = "The whiteout command underlays a white background under a +markup. The shape is determined by @code{whiteout-style}. The default +is @code{box} which produces a rectangle. @code{rounded-box} produces +a rounded rectangle. @code{outline} approximates the outline of the +markup." } -\version "2.10.0" +\version "2.19.32" \paper { ragged-right = ##t } -{ - \override TextScript #'extra-offset = #'(2 . 4) - c'4-\markup { \whiteout \pad-markup #0.5 foo } c -} +\relative { + \override TextScript.layer = #'2 + \override TextScript.extra-offset = #'(2 . 4) + c''4-\markup { \whiteout foo } c + c-\markup { \whiteout \pad-markup #0.5 foo } c + c-\markup { + \override #'(thickness . 2) + \whiteout foo + } + c + c-\markup { + \override #'(thickness . 3) + \override #'(style . rounded-box) + \whiteout foo + } + c + c-\markup { + \override #'(thickness . 3) + \override #'(style . outline) + \whiteout foo + } + c +}